# OpenCV-Contrib in Android Application

**URL:** <https://forum.opencv.org/t/opencv-contrib-in-android-application/18109>\
**Category:** C++\
**Tags:** android, contrib, build\
**Created:** [June 28, 2024, 9:06am UTC](https://forum.opencv.org/t/opencv-contrib-in-android-application/18109 "2024-06-28T09:06:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ap68275](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@ap68275](https://forum.opencv.org/u/ap68275)\
**Post date:** [June 28, 2024, 9:06am UTC](https://forum.opencv.org/t/opencv-contrib-in-android-application/18109/1 "2024-06-28T09:06:22Z")

</div>

Hi!

I am currently trying to implement object tracking in an Android application using Dart’s FFI and OpenCV-contrib’s tracking modules. I have built opencv 4.9.0 with the contrib module using the build\_sdk.py script and have a .so file. However when I try and run the app, the opencv code seems to error out and I get the following error message:

Failed to load dynamic library ‘libOpenCV\_ffi.so’: dlopen failed: cannot locate symbol “\_ZN2cv6legacy8tracking12TrackerMOSSE6createEv”.

This only occurs when I try to use on of the trackers from the Tracking module, but if I use TrackerMIL from the video module it seems to work fine.

I was wondering if anyone had tried this before, or knows how to fix this error? Thanks in advance!
