Android L (5.0) does not search native libraries in “armeabi” or “armeabi-v7a” folder (UnsatisfiedLinkError) in eclipse

后端 未结 4 2114
梦谈多话
梦谈多话 2021-01-07 09:48

My app is using 2 native libraries, lets call them LibA.so and LibB.so. Previously my app was running well below kitkat OS without any problem.

Now It gives Unsatisf

4条回答
  •  悲&欢浪女
    2021-01-07 10:25

    You can pull libcrypto.so from your device. It is not necessary to look for a Lollipop version. In your Android.mk, use

    LOCAL_LDLIBS += -lcrypto
    

    Ignore the NDK warning about using non-official libraries. You should not ship this libcrypto.so with your APK, just like you don't ship libm.so. See more here: WARNING: …/Android.mk: non-system libraries in linker flags

提交回复
热议问题