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

后端 未结 2 777
佛祖请我去吃肉
佛祖请我去吃肉 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:30

    Place your jni precompiled libraries (.so files) as per the following structure

    app->src->jniLibs
    
        ->armeabi->your_libs.so
    
        ->armeabi-v7a->your_libs.so
    
        ->x86 ->your_libs.so
    
    • Where app is your main app
    • and jniLibs is the default folder which is picked up automatically (keep this exact folder name)
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题