I’m working on a project developed with Cocos2d-x. Using org.cocos2dx.lib, I have successfully ported it to Android in Android Studio. However, I’m encountering a crash issue that only occurs on Android 14 (SDK 34). Crashes immediately upon launch on Android 14. The application runs fine on other versions of Android.
The app runs without issues on Android 13, but I encounter a crash on Android 14 (SDK 34). The error message in logcat is:
JNI DETECTED ERROR IN APPLICATION: obj==null
in call to CallObjectMethodV
from void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int)
This error message only show in Android 14.
Are there known issues or specific changes required for compatibility with Android 14?
What steps can I take to debug or resolve this JNI error?
박치수 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.