[SOLVED] Problem native andengine with box2d[libgdx]

if you got problem like this:

/AndroidRuntime(1xx): FATAL EXCEPTION: UpdateThread
/AndroidRuntime(1xx): Couldn't load andenginephysicsbox2dextension from loader dalvik.system.PathClassLoader

to resolve this problem you can create folder jniLibs inside AndEnginePhysicsBox2DExtension-GLES2 and after that you will copy folder armeabi, armeabi-v7a and x86 into it. Before you copy folder into jniLibs i suggest you build your AndEnginePhysicsBox2DExtension. After all finished you can open build.gradle on AndEnginePhysicsBox2DExtension and add this line:

    sourceSets.main {
        jniLibs.srcDir 'src/main/jniLibs'
        jni.srcDirs = [] //disable automatic ndk-build call
    }

ok build your project and boalaaa… error have gone…

Screenshot from 2015-04-12 20:33:49

2 thoughts on “[SOLVED] Problem native andengine with box2d[libgdx]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s