2

我正在使用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

这可能是什么原因?谢谢。

4

1 回答 1

0

我已经成功了!这是类型转换问题。

于 2016-01-18T13:18:00.740 回答