Unexplained UnsatisfiedLinkError on Downloadable Library Download

First of all, my application works . I have numerous clients on all four 32-bit CPU / ABIs and they have no problem running the application. A built-in library is built for all four architectures. There is a library, all methods are in place and are eligible. And yet, I get exception reports occasionally when you cannot load your own library:

java.lang.UnsatisfiedLinkError: Couldn't load foo from loader
dalvik.system.PathClassLoader [DexPathList[[zip file "/data/app/com.myapp-1.apk"],
nativeLibraryDirectories=[/data/app-lib/com.myapp-1, /vendor/lib, /system/lib]]]:
findLibrary returned null

I can not reproduce this, neither on the emulator, nor on several devices to which I have access. I have reports with this exception from the following devices:

Sony Xperia LT29i (Android 4.3)
Sony Xperia C5303 (Android 4.3)
LG Optimus E405 (Android 2.3.6)

And it is very specific. So far I have 27 reports, but only these three devices. These are all armeabi-v7a devices, not sure if this matters.

, ?

EDIT: Optimus:

I/ActivityManager(23495): process name to start: com.myapp
I/ActivityManager(23495): Start proc com.myapp for activity com.myapp/.Main: pid=5755 uid=10078 gids={3003, 1015, 1007}

. .

+4
3

, , ​​ 4.3, , , . , Xperia . + , .

+1

, , . , imsing , , :

try {
        System.loadLibrary("YourLib");
    } catch (UnsatisfiedLinkError e) {

        System.load("YourLibPath");
    }
+2

I put System.loadLibrary ("libMyLibrary"), which returned null. I changed it to System.loadLibrary ("MyLibrary") and it worked.

-1
source

All Articles