java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null (tess-two)

后端 未结 4 2753
温柔的废话
温柔的废话 2021-02-20 18:18

I am using sqlcipher.jar for encrypting database in android and also using it\'s native library in

libs/armeabi folder

1)libdatabase_sqlcipher.

相关标签:
4条回答
  • 2021-02-20 19:02

    You can try to change the line:

    APP_STL := gnustl_static (in the file tess-two / tess-two / jni / Application.mk)

    to: APP_STL := stlport_static

    0 讨论(0)
  • 2021-02-20 19:06

    The loader is not able to find the said library file. So, I decided to pack it along with my app. It's only 394KB

    I downloaded the libstlport_shared.so from the following address and added it to the lib/armeabi and lib/armeabi-v7a folders, cleaned the project and rebuilt it. Now it runs without a problem.

    http://331312256.wodemo.net/browse/dl/156348/lib/armeabi/libstlport_shared.so?resolved=1

    Hope that helps

    0 讨论(0)
  • 2021-02-20 19:15

    I was running into the same issue. First of all, check that all the libraries are correctly imported.

    In my case the problem was that when we added another library project, these project had a armeabi_v7 folder, so apparently if will take precedence over the armeabi folder, meaning that the sqlitecypher libraries won't be located.

    In our case the solution was just to remove the armeabi_v7 folder on the new library.

    Hope it helps.

    0 讨论(0)
  • 2021-02-20 19:25

    I had same issue.. I was using Android Studio and I had imported application from eclipse to android studio.

    I spent 3-4 hours to find out the solution. Here what I did to solve this issue.. (Only for Android studio) Create Directory into src folder name it main and other directory as per following image. You may have libs and assets folder outside of src folder, in main directory of project, that is eclipse structure. We will need to follow Android Studio's structure.. enter image description here

    For more details.. Check this link...

    For other helps regarding SqlCipher check this link..

    (I know I am bit late to answer this question but it might help someone.)

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