Adding a .so file in Android Studio

前端 未结 5 1633
攒了一身酷
攒了一身酷 2020-12-02 20:40

I am trying to add an external library, Scandit. I keep getting this error:

    java.lang.UnsatisfiedLinkError: Couldn\'t load scanditsdk-android-3.3.1 from          


        
5条回答
  •  既然无缘
    2020-12-02 21:37

    I had a libs folder in my project where i included external libraries added the line compile fileTree(dir: 'libs', include: '*.jar') into dependencies {} in the gradle's build file.

    Then I made a lib folder and inside it an armeabi folder where I've inserted all the needed .so files. I then zipped the folder into a .zip (the structure inside the zip file is now lib/armeabi/*.so) I renamed the .zip file into armeabi.jar and added it to the libs folder as an external library.

提交回复
热议问题