у меня проблема с cocos2dx и android 4.2.1
Мое приложение отлично работает на платформах до 4.2, но на моем нексусе есть следующие ошибки:
02-07 16:55:06.691: W/dalvikvm(10381): Exception thrown (Ljava/lang/ArrayStoreException;) while throwing internal exception (Ljava/lang/ArrayStoreException;)
02-07 16:55:06.691: W/dalvikvm(10381): Exception thrown (Ljava/lang/ArrayStoreException;) while throwing internal exception (Ljava/lang/ArrayStoreException;)
02-07 16:55:06.711: W/dalvikvm(10381): threadid=12: thread exiting with uncaught exception (group=0x40c74930)
02-07 16:55:06.711: W/System.err(10381): java.lang.ArrayStoreException: java.lang.String cannot be stored in an array of type java.lang.String[][]
02-07 16:55:06.711: W/System.err(10381): at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
02-07 16:55:06.711: W/System.err(10381): at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:129)
02-07 16:55:06.711: W/System.err(10381): at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:255)
02-07 16:55:06.711: W/System.err(10381): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
02-07 16:55:06.711: W/System.err(10381): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
02-07 16:55:06.711: D/FlurryAgent(10381): Error logged: uncaught
02-07 16:55:06.711: D/FlurryAgent(10381): Ending session
02-07 16:55:06.711: E/AndroidRuntime(10381): FATAL EXCEPTION: GLThread 556
02-07 16:55:06.711: E/AndroidRuntime(10381): java.lang.ArrayStoreException: java.lang.String cannot be stored in an array of type java.lang.String[][]
02-07 16:55:06.711: E/AndroidRuntime(10381): at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
02-07 16:55:06.711: E/AndroidRuntime(10381): at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:129)
02-07 16:55:06.711: E/AndroidRuntime(10381): at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:255)
02-07 16:55:06.711: E/AndroidRuntime(10381): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
02-07 16:55:06.711: E/AndroidRuntime(10381): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Пожалуйста, помогите, я не могу понять, что не так.
Я решил.
edit AnalyticXStringUtilAndroid.cpp (diwu / AnalyticX)
строка 24
jStringCls = pEnv->FindClass("[Ljava/lang/String;");
заменить на
jStringCls = pEnv->FindClass("java/lang/String");
Других решений пока нет …