FATAL EXCEPTION: Animation Thread

Hello everybody. I’m new with Android Mode for processing and I’m trying to add opencv library but I get this error when i run:

FATAL EXCEPTION: Animation Thread
Process: processing.test.mhi, PID: 8129
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/processing.test.mhi-1/base.apk"],nativeLibraryDirectories=[/data/app/processing.test.mhi-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libopencv_java320.so"
	at java.lang.Runtime.loadLibrary(Runtime.java:367)
	at java.lang.System.loadLibrary(System.java:1076)
	at processing.test.mhi.MHI.setup(MHI.java:40)
	at processing.core.PApplet.handleDraw(PApplet.java:1846)
	at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)
	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)

My code:

import org.opencv.core.Core;
void setup() {
 size(640, 480);
 println(Core.NATIVE_LIBRARY_NAME);
 println(Core.VERSION);
 System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
void draw() {
 background(100, 100, 100);
}

I add opencv_java320.dll and opencv-320.jar in code folder. When i try run in java mode all is well but not android mode. I think that i have add libs(arm64-v8a …) but i don’t where.

I believe the OpenCV library available in the contribution manager also works in android mode. This link discusses its features.

I won’t have a chance to test this atm. If it does not work, tag me and I can try getting an example running tonight.

Kf