小弟用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
不知道哪的问题,网上查了很久没有找到类似的问题。