Android - OpenCV error: Cannot load info library for OpenCV

cannot load library "opencv_java4"
opencv android studio
d/opencv/statichelper: cannot load library "opencv_java4"
error failed to resolve org opencv opencv android 2.4 8
opencv-android compile error
error package org opencv android does not exist
opencv android linux
opencv android sample projects

I already setup OpenCV SDK in Android Studio (https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html) but it seems I got this kind of error message.

05-12 03:30:08.819 5480-5480/my.xxxxx I/art: Late-enabling -Xcheck:jni
05-12 03:30:08.925 5480-5480/my.xxxxx D/OpenCV/StaticHelper: Trying to get library list
05-12 03:30:08.926 5480-5480/my.xxxxx E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV
05-12 03:30:08.926 5480-5480/my.xxxxx D/OpenCV/StaticHelper: Library list: ""
05-12 03:30:08.926 5480-5480/my.xxxxx D/OpenCV/StaticHelper: First attempt to load libs
05-12 03:30:08.926 5480-5480/my.xxxxx D/OpenCV/StaticHelper: Trying to init OpenCV libs
05-12 03:30:08.926 5480-5480/my.xxxxx D/OpenCV/StaticHelper: Trying to load library opencv_java3
05-12 03:30:08.926 5480-5480/my.xxxxx D/OpenCV/StaticHelper: Cannot load library "opencv_java3"

I already include opencv_java3 into JNI folder.

Most online tutorial will tell you to add just armeabi-v7a and x86_64 into your jniLibs folder, but this can cause errors in recent versions of OpenCV. The following briefly describes a few tweaks I used to fix this error when I was experiencing the same issue.

Solution 1:

Make sure the JNI folder you are placing the OpenCV libraries in is named jniLibs

jniLibs Folder

Solution 2:

Copy ALL the directories found in OpenCV-android-skd/sdk/native/libs to your jniLibs folder.

jniLibs folder with all OpenCV libraries added

Recommended:

Even though it is a separate issue involving the emulator, you should also add the code snippet posted by FD3 in your app Module Gradle file. This will prevent the INSTALL_FAILED_NO_MATCHING_ABIS error from occuring after attempting to run your app on an emulator.

cannot load info library for opencv, after getting openv for android from git and compiling it , i tried to run the 3rd tutorial , the problem is i am getting opencv drror : cannot load info  E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV and ends up here on this StackOverflow discussion, here is a helpful clarification from the OpenCV contributor on their site itself.

You can try to include opencv_java3 into jniLibs folder, like this:

Cannot load info library for OpenCV · Issue #15567 · opencv/opencv , With OpenCV 4.1.1 for Android, I got the below error: E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV. I have been trying for hours to try to get either the OpenCV Manager application on Samsung Galaxy S5 to work or a static import of the opencv library and neither have worked. I am using OpenCv 2.4

Over a year later but I found this to work for me. In you app Module gradle file, add:

splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a', 'x86_64'
            universalApk true
        }
    }

This should be put in with the android brackets. Obviously adjust your includes for which ever you may need.

Android tries to load nonexisting opencv_info library. · Issue #8100 , When I run OpenCV Application in Android, I can find a log likes E/OpenCV/​StaticHelper: OpenCV error: Cannot load info library for OpenCV  Trying to get library list Cannot load info library for OpenCV Library list: "" First attempt to load libs Trying to init OpenCV libs Trying to load library opencv_java Cannot load library "opencv_java" Do you have any idea how to solve this error?

Android - OpenCV error: Cannot load info library for , d/opencv/statichelper: trying library list 05-12 03:30:08.926 5480-5480/my.​xxxxx e/opencv/statichelper: opencv error: cannot load info library  In OpenCV Java Version, it tries to load library named opencv_info. However it doesn't exist in 3.2 and master code. When I run OpenCV Application in Android, I can find a log likes E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV, but it doesn't crash. I think it can be safely deleted. Steps to reproduce

java - Android, Android studio import OpenCV error: OpenCV error: Cannot load info library for OpenCV, Programmer Sought, the best programmer technical posts sharing site. com.martin.ads.testopencv E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV when I debug the project ,I found this in logcat ,but I have copy that 'brief_k10L6.bin' three files in my phone ,can you tell me what can

Android studio import OpenCV error: OpenCV error: Cannot load , loadLibrary("opencv_info"); 30 libs = getLibraryList(); 31 } 32 catch(​UnsatisfiedLinkError e) 33 { 34 Log.e(TAG, "OpenCV error: Cannot load info library for  I have been trying for hours to try to get either the OpenCV Manager application on Samsung Galaxy S5 to work or a static import of the opencv library and neither have worked. I am using OpenCv 2.4.11. For the static import I get the following error:

Comments
  • Hi, did you find the solution? I am battling with the same problem. I used the tutorial here stackoverflow.com/questions/27406303/opencv-in-android-studio ..
  • @Mohammad have you solved your problem i having the same problem can share your answer if you solved it?