How to add the libandenginephysicsbox2dextension.so file in Android Studio | Andengine -


i wanted develop app android studio using andengine. after have imported andengine.jar , libandenginephysicsbox2dextension.jar seemed work correctly. @ point physicsworld created:

private void createphysics() {         physicsworld = new fixedstepphysicsworld(60, new vector2(0, -17), false);         registerupdatehandler(physicsworld);     } 

this exception appears: java.lang.unsatisfiedlinkerror: dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/com.sample.packet.sample-1/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]]] couldn't find "libandenginephysicsbox2dextension.so"

i think must download *.so file don't know place in project. help?

you can follow answer here https://stackoverflow.com/a/34068202/2026280

or

its simple. follow simple steps

1) create new folder called "lib" inside libs folder of main app.

2) copy folders ie.armabi , armabi-v7a etc andenginephysicsbox2dextension/libs folder, , paste in in created "lib" folder in main app.

3) compress "lib" folder "lib.zip" , rename "lib.jar". changes zip extension jar.

4) add line -- compile files('lib.jar') under dependencies{} in build.gradle file of main app.

5) clean , build project.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -