Cocos2D-x sample application crashes on launch

删除回忆录丶 提交于 2019-12-07 03:50:27

seems that your building is not successful according to the log. no hellocpp.so is generated. so it crashes when you call the method

loadLibrary();

you can check this under youPath/proj.android/libs/armeabi , see if there's a libxxx.so file.

Every time this has happened to me it has always been because I forgot to run ./build_native.sh in the "proj.android" folder of the project in question. @Lorin actually noted the symptom that reminded me. A reason that a libxxx.so file would be missing is the ./build_native.sh script has yet to be run

When you run eclipse to build it is happening in the background. When you compile from command line you need to remember to to have run the script at least once (and every time (if) you ever make a change to the cocos2dx framework itself.) I frequently forget to do that for EVERY project thereafter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!