# FATAL EXCEPTION: Animation Thread

**URL:** <https://discourse.processing.org/t/fatal-exception-animation-thread/5914>\
**Category:** Processing for Android\
**Created:** [November 25, 2018, 11:52am UTC](https://discourse.processing.org/t/fatal-exception-animation-thread/5914 "2018-11-25T11:52:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filipopl](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@Filipopl](https://discourse.processing.org/u/Filipopl)\
**Post date:** [November 25, 2018, 11:52am UTC](https://discourse.processing.org/t/fatal-exception-animation-thread/5914/1 "2018-11-25T11:52:14Z")

</div>

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:

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [November 25, 2018, 1:01pm UTC](https://discourse.processing.org/t/fatal-exception-animation-thread/5914/2 "2018-11-25T13:01:07Z")

</div>

I believe the OpenCV library available in the contribution manager also works in android mode. This [link](http://urbanhonking.com/ideasfordozens/2013/07/10/announcing-opencv-for-processing/) 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
