Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldn't find "libandenginephysicsbox2dextension.so" #14

Open
oalpayli opened this issue Nov 9, 2015 · 1 comment
Open

couldn't find "libandenginephysicsbox2dextension.so" #14

oalpayli opened this issue Nov 9, 2015 · 1 comment

Comments

@oalpayli
Copy link

oalpayli commented Nov 9, 2015

Hi,

I use andengine and box2dextension libraries in my game. When I try my game on lg g4 with 64 bit processor, I get below error:

E/AndEngine: GameActivity.onCreateScene failed. @(Thread: 'GLThread 1447')
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.revolvia.fivepop-1/base.apk"],nativeLibraryDirectories=[/data/app/com.revolvia.fivepop-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libandenginephysicsbox2dextension.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at org.andengine.extension.physics.box2d.PhysicsWorld.(PhysicsWorld.java:36)
at com.revolvia.fivepop.activities.GameActivity.onCreateScene(GameActivity.java:386)
at org.andengine.ui.activity.SimpleLayoutGameActivity.onCreateScene(SimpleLayoutGameActivity.java:48)
at org.andengine.ui.activity.BaseGameActivity$3.onCreateResourcesFinished(BaseGameActivity.java:169)
at org.andengine.ui.activity.SimpleLayoutGameActivity.onCreateResources(SimpleLayoutGameActivity.java:43)
at org.andengine.ui.activity.BaseGameActivity.onCreateGame(BaseGameActivity.java:181)
at org.andengine.ui.activity.BaseGameActivity.onSurfaceCreated(BaseGameActivity.java:110)
at org.andengine.opengl.view.EngineRenderer.onSurfaceCreated(EngineRenderer.java:80)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)

Please Help me..

@farazappy
Copy link

Adding ndk { abiFilters "armeabi-v7a", "x86", "armeabi", "mips" } under defaultConfig{} in app.gradle file fixes the problem, In addition add android.useDeprecatedNdk=true to gradle.properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants