Skip to content Skip to sidebar Skip to footer

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 :

  1. Using adb shell go in to the sys/lib/ folder and check if your library was copied there
  2. 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 the unsatisfied link error.
  3. You can also try to manually load your library using System.loadLibrary("myLib");
  4. 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"