java.lang.UnsatisfiedLinkError: Couldn't load opencv_java from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/mnt/asec/com.example.myeffects-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.example.myeffects-1/lib, /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.

Solutions on the web

via Stack Overflow by BQ.
, 1 year ago
Couldn't load opencv_java from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/mnt/asec/com.example.myeffects-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.example.myeffects-1/lib, /vendor/lib, /system/lib]]]: findLibrary returned null
via Google Groups by Menion, 2 years ago
via Stack Overflow by Lovely ToonZ
, 1 year ago
-23.3.0_199d74c867def15a14f8523f2a9546977c25cde5-classes.dex"],nativeLibraryDirectories=[/data/app/com.example.toonz.myapplication-2/lib/x86, /data/app/com.example.toonz.myapplication-2/base.apk!/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libjniavcodec.so"
via Stack Overflow by user45678
, 1 year ago
dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.teleca.sam.engine-1/base.apk"],nativeLibraryDirectories=[/data/app/com.teleca.sam.engine-1/lib/arm64, /data/app/com.teleca.sam.engine-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libovpncli.so"
via GitHub by ZuzooVn
, 1 year ago
dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.fastbootmobile.encore.app-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libc++_shared.so"
via GitHub by van11
, 2 years ago
Couldn't load snappydb-native from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/X-2.apk", zip file "/data/data/X/code_cache/secondary-dexes/X-2.apk.classes2.zip"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]]: findLibrary returned null
java.lang.UnsatisfiedLinkError: Couldn't load opencv_java from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/mnt/asec/com.example.myeffects-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.example.myeffects-1/lib, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:606)
at com.example.myeffects.CartoonifierView.(CartoonifierView.java:262)
at com.example.myeffects.CartoonifierApp.onCreate(CartoonifierApp.java:68)
at android.app.Activity.performCreate(Activity.java:5264)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2393)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5295)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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