我正在使用cocos2d-x-2.2.6
并且我的应用程序在设备上崩溃runnin
。logcat 在 Cocos2dxRenderer.java 文件上指向我,它在
@Override
public void onSurfaceCreated(final GL10 pGL10, final EGLConfig pEGLConfig) {
Cocos2dxRenderer.nativeInit(this.mScreenWidth, this.mScreenHeight);
this.mLastTickInNanoSeconds = System.nanoTime();
}
在调用 Cocos2dxRenderer.nativeInit(this.mScreenWidth, this.mScreenHeight);
错误是:
JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception 'java.lang.NoSuchMethodError' thrown in void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int):-2 in call to FindClass
这可能是什么原因?谢谢。