Recently I updated from v3.2 to 3.7. There were no problems on iOS, only on Android (NDK10d).
The crash occurs during the load of the native library.
The log is not so much detailed and I don’t know how to start to fix it.
I know that the python script to compile for android was deprecated and now I use the cocos command to compile my eclipse project. Should I change something in somewhere to make my library load? Did something change on the JNI since v3.2? Did someone got this problem before?
Thanks both, problem solved. Enjoying v3.7
After recompiling everything with Eclipse closed, very important, don’t know exactly why, can run my games.
Also moved some of my own resources that weren’t in the right place and everything looks fine.
This solution from @trojanfoe has really saved my day! You must be crazy to change this method signature without notice to those who want to upgrade an existing project …
This is the biggest problem in the cocos2d-x community: there is no established and stable way to upgrade an existing project!
I ran into this issue today upgrading cocos from an old beta 3.3 to 3.3.13 and put in logging statements until I found the crash using the dumped backtrace as a guide. Turned out it was due to the signature of cocos_android_app_init changing removing the second “jobject” parameter. Once I removed that from my main.cpp everything worked! It all made sense now why it was getting a nullptr dereferencing error as the stack frame was all messed up due to it thinking an extra parameter was pushed onto it.