Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17075

Android integration

$
0
0

@faceless92 wrote:

Hi, I'm using cocos2d-x-2.2.6 and my app crashes, when runnin on a device.
logcat points me on Cocos2dxRenderer.java file and it crashes in

@Override
public void onSurfaceCreated(final GL10 pGL10, final EGLConfig pEGLConfig) {
Cocos2dxRenderer.nativeInit(this.mScreenWidth, this.mScreenHeight);
this.mLastTickInNanoSeconds = System.nanoTime();
}

on calling Cocos2dxRenderer.nativeInit(this.mScreenWidth, this.mScreenHeight);

error is:
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

What could be a reason of it?
Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>