I'm trying to add OpenCV to an existing Android project of mine but while merging them I ran into the following error:
12-08 16:15:21.951 22052-22052/ai.inbi.face_recognition_robot E/AndroidRuntime: FATAL EXCEPTION: main
Process: ai.inbi.wonderful_face_recognition_robot, PID: 22052
java.lang.UnsatisfiedLinkError: Couldn't load uvcNative from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/ai.inbi.wonderful_face_recognition_robot-1.apk"],nativeLibraryDirectories=[/data/app-lib/ai.inbi.wonderful_face_recognition_robot-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
I tried to manually comment out all references to OpenCV but unless I delete all OpenCV files from my libs folder the existing library (com.qihancloud.opensdk) fails to find it's own library functions. The folder structure of my libraries is like this:
If I remove the OpenCV library files before compiling everything works well. Also my standalone OpenCV project is working but as soon as I try to combine them it fails to execute.
My app build.gradle file can be seen here: https://pastebin.com/Z7hPH3vy
And my CMakeLists.txt https://pastebin.com/gGwgWtxP