I'm new to android studio and am working on an existing project that is using OpenCV. I need to implement CMU's Pocketsphinx for Android, and in following the installation steps they give I have created a jniLibs folder in my /src directory of my project, and placed the appropriate files for pocketsphinx in there.
This is where the problem occurs- when I do this, I suddenly get the following error message:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.robodoot.dr.facetracktest-2/base.apk"],nativeLibraryDirectories=[/data/app/com.robodoot.dr.facetracktest-2/lib/arm, /data/app/com.robodoot.dr.facetracktest-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libjniopencv_core.so"
I do NOT get this error if I don't have the jniLibs folder in the /src directory, though then of course I get an error from pocketSphinx saying that it can't find it's required .so files.
What's more, after looking through OpenCV's SDK, I noticed there is no such file "libjniopencv_core.so". It doesn't exist anywhere, there are other .so files but none of which with that name. Even if I install all of the armeabi and what not directories from openCV to my new jniLibs folder, I still get this error message.
How can I tell android studio to only load the pocketsphinx jniLibs files, and disregard searching that directory for openCV .so files?