[英]Android Studio with OpenCV error dlopen failed: library "libopencv_java3415.so" not found
The detailed error when I tried with OpenCV3 is:我尝试使用 OpenCV3 时的详细错误是:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libopencv_java3415.so" not found
I have been struggling with this error.我一直在为这个错误而苦苦挣扎。 I have tried copying the content of the /libs folder to jnilibs directory even with different versions of OpenCV (v4 and v3) but no success at all.我尝试将 /libs 文件夹的内容复制到 jnilibs 目录,即使使用不同版本的 OpenCV(v4 和 v3),但完全没有成功。 Any help is very much appreciated...很感谢任何形式的帮助...
I have just found a (dumb) way to deal with this error.我刚刚找到了一种(愚蠢的)方法来处理这个错误。 I renamed the "libopencv_java3.so" to "libopencv_java3415.so" and it worked.我将“libopencv_java3.so”重命名为“libopencv_java3415.so”并且它起作用了。 But this is very strange...但这很奇怪……
I just imported the OpenCV SDK in the project and linked it through the CMake.我刚刚在项目中导入了 OpenCV SDK 并通过 CMake 链接它。 It is very simple and does not require any copying into jnilibs.它非常简单,不需要任何复制到 jnilibs 中。 Here is the step:这是步骤:
https://kcwong-joe.medium.com/how-to-import-opencv-4-5-2-in-android-studio-d9114179628f https://kcwong-joe.medium.com/how-to-import-opencv-4-5-2-in-android-studio-d9114179628f
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.