I have an application that uses OpenCV 3.1
. I copied lib_opencv_java.so
file into jniLibs
folder. Now I want to integrate a new sdk into my app but this SDK also uses a different version of OpenCV. SDK OpenCV lib's added with Gradle, not copied to jni
folder. When I build application it's giving an error on compilation time:
More than one file was found with OS independent path 'lib/arm64-v8a/libopencv_java3.so'
For solving this issue I renamed my OpenCV and regenerated .so
file with different name. After that, it did not give above issue, but when I try to open my activity that uses OpenCV. The application crashed with below error:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “_ZN2cv7imwriteERKNS_6StringERKNS_11_InputArrayERKSt6vectorIiSaIiEE” referenced by “/data/app/io.xxxxxx-gilxH9B4dAHGtuXtU4Sl6Q==/lib/arm64/libProcess.so”.