OpenCV error: Cannot load info library for OpenCV
I'm trying to use VideoCapture from opencv but I have this error :
11-02 13:50:02.209 16755-16755/? W/System.err: java.lang.UnsatisfiedLinkError: Couldn't load opencv_java3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.opencv.samples.puzzle15-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.opencv.samples.puzzle15-1, /vendor/lib, /system/lib, /system/lib/arm]]]: findLibrary returned null
11-02 13:50:02.209 16755-16755/? W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:358)
11-02 13:50:02.209 16755-16755/? W/System.err: at java.lang.System.loadLibrary(System.java:526)
(...)
For the moment I just want to create the VideoCapture but it doesn't work. This is my code private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
@Override
public void onManagerConnected(int status) {
switch (status) {
case LoaderCallbackInterface.SUCCESS:
{
Log.i(TAG, "OpenCV loaded successfully");
/* Now enable camera view to start receiving frames */
mOpenCvCameraView.setOnTouchListener(Puzzle15Activity.this);
mOpenCvCameraView.enableView();
} break;
default:
{
super.onManagerConnected(status);
} break;
}
}
};
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
if (!OpenCVLoader.initDebug()) {
Log.d(TAG, "Internal OpenCV library not found. Using OpenCV Manager for initialization");
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback);
}
VideoCapture cv=new VideoCapture();
}
I am using android studio and opencv 3.0.0.