java.lang.UnsatisfiedLinkError: Couldn't load andenginephysicsbox2dextension- Android

后端 未结 2 774
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 03:06

I\'m trying to work with andengine in \"Android studio, not eclipse\" and im getting this error when i run the project.

9442-29483/com.make         


        
2条回答
  •  离开以前
    2020-12-04 03:44

    Its very simple. Follow this simple steps

    1) Create a new folder called "lib" inside the libs folder of the main app.

    2) Copy all the folders ie.armabi , armabi-v7a etc from andEnginePhysicsBox2DExtension/libs folder, and paste in in the previously created "lib" folder in main app.

    3) Now compress the "lib" folder as "lib.zip" and rename it to "lib.jar". this changes the zip extension to jar.

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

    5) Clean and build the project.

提交回复
热议问题