cocos2dx compile for android-studio

小弟用cocos命令新建了一个项目,然后将proj.android-studio 导入到android-studio中,用ndk成功编译(等了好久)了并生成了apk,在我选择完模拟器的时候报错了,内容如下

07/16 20:42:48: Launching HelloWorld
adb push D:\HelloWorld\proj.android-studio\app\build\outputs\apk\HelloWorld-debug.apk /data/local/tmp/com.helloworld.www adb shell pm install -r “/data/local/tmp/com.helloworld.www”
pkg: /data/local/tmp/com.helloworld.www
Success

$ adb shell am start -n “com.helloworld.www/org.cocos2dx.cpp.AppActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Unexpected error while executing: am start -n “com.helloworld.www/org.cocos2dx.cpp.AppActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while Launching activity

不知道哪的问题,网上查了很久没有找到类似的问题。

检查下包名~

谢谢,我也怀疑过是package的问题,但org.cocos2dx.cpp.AppActivity 这个类包确实存在的, com.helloworld.www 这个package我不清楚是什么意思,新建项目时是用的这样的命令
cocos new HelloWorld -p com.helloword.www -l cpp -d D:\

这个错误提示像是说找不到AppActivity启动类,如果是这样的话怎么改呢

新建项目的包名没有替换默认的包名,你手动改下

好的,谢谢大神~