Application Crashes In Emulator When Loading Native Shared Library, But Works Fine On A Physical Device
The header pretty much explains the issue. I'm getting 'Unsatisfied link error' on emulator. What could be the cause and what are the possible solutions? Some time ago, when we sta
Solution 1:
Problem solved! it appears, Android QUEMU emulator only supports ARM5 (APP_ABI:=armeabi
), and my library was compiled with armeabi-v7a
.
Update: the problem no longer exists.
Solution 2:
You should check the following :
- Using
adb shell
go in to thesys/lib/
folder and check if your library was copied there - Did you change the package of your class or did some refactoring? If you did and didn't updated the
.cpp
file this is causing theunsatisfied link error
. - You can also try to manually load your library using
System.loadLibrary("myLib");
- You could also try to create a new emulator, maybe it got messed some how. Happens a lot.
Post a Comment for "Application Crashes In Emulator When Loading Native Shared Library, But Works Fine On A Physical Device"