I use a third/second-party native library (called libmc_eruconverter_lv2_for_android_jni.so) and am trying to debug an fatal exception which ONLY occurred when my app runs on Android L (5.0).
10-23 12:43:03.513: E/art(2177):
dlopen("/data/app/com.ocean.web3d.lib-2/lib/arm/libmc_eruconverter_lv2_for_android_jni.so",
RTLD_LAZY) failed: dlopen failed: could not load library "libdvm.so"
needed by "libmc_eruconverter_lv2_for_android_jni.so"; caused by library
"libdvm.so" not found
10-23 12:43:03.514: D/AndroidRuntime(2177): Shutting down VM
10-23 12:43:03.514: D/AndroidRuntime(2177): --------- beginning of crash
10-23 12:43:03.515: E/AndroidRuntime(2177): FATAL EXCEPTION: main
10-23 12:43:03.515: E/AndroidRuntime(2177): Process:
com.ocean.web3d.lib, PID: 2177
10-23 12:43:03.515: E/AndroidRuntime(2177):
java.lang.UnsatisfiedLinkError: dlopen failed: could not load library
"libdvm.so" needed by "libmc_eruconverter_lv2_for_android_jni.so"; caused
by library "libdvm.so" not found
10-23 12:43:03.515: E/AndroidRuntime(2177): at
java.lang.Runtime.loadLibrary(Runtime.java:371)
10-23 12:43:03.515: E/AndroidRuntime(2177): at
java.lang.System.loadLibrary(System.java:989)
10-23 12:43:03.515: E/AndroidRuntime(2177): at
com.ocean.web3d.lib.oceanRenderer.<clinit>(oceanRenderer.java:18)
In order to fix this problem, I have tried to renew my development environment from: ATD 23.02 (Eclipse 4.2.2) with NDK r8c to: ATD 23.04 (Eclipse JUNO) with NDK r10c
(FYI, I have got a link warning, so I modified my Android.mk file and the warning is fixed not now by referring to this thread WARNING: .../Android.mk: non-system libraries in linker flags )
Also, in Application.mk, I have set my APP_PLATFORM to 21
However, I still have got the fatal exception. I have almost tried what I can try... Could anyone kindly help or give me some ideas? Thank you very much in advance!