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

后端 未结 4 2102
梦谈多话
梦谈多话 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:02

    From your error description I can see that library LibA.so not loaded due to it uses some MD5 code which is not available - not linked in. For example you may use other native shared library with MD5 sources linked in during build (as shared library) - but you not copied this shared library to target application libs folder.

    I am not sure that implementation of MD5 related functions included into recent Android NDK. And also may be it was part of some android system shared libraries for previous versions and it was removed from Android L.

    So you need to check references from your C++/C code to MD5 related functions and found where sources are stored/linked.

    I may provide links for functions list which is exported from libc.so for android-17 for example and android-L: Android-17 LIBC functions vs Android-L LIBC functions

    And as you also may see - MD5 related functions are absent in shared libraries for L - so I believe that you have to include sources for those features (MD5) into your dynamic library.

提交回复
热议问题