java.lang.UnsatisfiedLinkError: Couldn't load legend from loader dalvik.system.PathClassLoader[DexPathList[[dex file "dalvik.system.DexFile@4247c8c0", zip file "/data/app/***.apk", zip file "/data/data/***/code_cache/secondary-dexes/***-1.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/***-1, /vendor/lib, /system/lib]]]: findLibrary returned null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

,

This is a sub-class of the LinkageError class and indicates that the JVM cannot find an appropriate native-language definition of a method declared as native. Install the CDF Software Distribution on your system.

Solutions on the web

via GitHub by xuyangbill
, 1 year ago
Couldn't load legend from loader dalvik.system.PathClassLoader[DexPathList[[dex file "dalvik.system.DexFile@4247c8c0", zip file "/data/app/***.apk", zip file "/data/data/***/code_cache/secondary-dexes/***-1.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/***-1, /vendor/lib, /system/lib]]]: findLibrary returned null
via Stack Overflow by roberto garavaglia
, 1 year ago
dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/example.testjni-1/base.apk"],nativeLibraryDirectories=[/data/app/example.testjni-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libhello-jni.so"
via Stack Overflow by aliaksei
, 1 year ago
dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.google.sample.helloandroidjni-2/base.apk"],nativeLibraryDirectories=[/data/app/com.google.sample.helloandroidjni-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libnative.so"
via GitHub by AlexandroKurchenko
, 1 year ago
dlopen failed: /data/app/com.wonderslab.camcrush-1/lib/x86/libooVooSdk.so: has text relocations
via Stack Overflow by Shyam Sundar Kulkarni
, 2 years ago
Couldn't load webrtcdemo-jni from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.webrtc.webrtcdemo-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.webrtc.webrtcdemo-1, /vendor/lib, /system/lib]]]: findLibrary returned null
via Stack Overflow by Unknown author, 2 years ago
Couldn't load nameofsofile_jni from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.package.demo-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.package.demo-1, /vendor/lib, /system/lib]]]: findLibrary returned null
java.lang.UnsatisfiedLinkError: Couldn't load legend from loader dalvik.system.PathClassLoader[DexPathList[[dex file "dalvik.system.DexFile@4247c8c0", zip file "/data/app/***.apk", zip file "/data/data/***/code_cache/secondary-dexes/***-1.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/***-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.lody.legend.utility.LegendNative.(LegendNative.java:17)
at com.lody.legend.dalvik.DalvikMethodStruct.(DalvikMethodStruct.java:63)
at com.lody.legend.dalvik.DalvikMethodStruct.of(DalvikMethodStruct.java:73)
at com.lody.legend.HookManager.hookMethodDalvik(HookManager.java:157)
at com.lody.legend.HookManager.hookMethod(HookManager.java:137)
at com.dodola.rocoofix.RocooFix.replaceMethod(RocooFix.java:665)
at com.dodola.rocoofix.RocooFix.fixClass(RocooFix.java:628)
at com.dodola.rocoofix.RocooFix.applyPatchRuntime(RocooFix.java:604)

Users with the same issue

Once, 1 month ago
159 times, 3 months ago
4 times, 7 months ago
8 times, 10 months ago
3 times, 10 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.