Android – OpenCV error: Cannot load info library for OpenCV… here is a solution to the problem.
Android – OpenCV error: Cannot load info library for OpenCV
I’ve > in Android Studio ( ) set up the OpenCV SDK, but I seem to be getting this 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’ve included opencv_java3
into the JNI
folder.
Solution
If someone is still (March 2020) searching for this error –
E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV
And conclude this StackOverflow discussion, which is a useful explanation from OpenCV contributors on their website.
Ignore this error message. “Info library” is used for special Android
configurations, like builds with CUDA support.
Check out this (currently Unresolved) issue here – https://github.com/opencv/opencv/issues/15567