简体   繁体   English

Android Studio 出现 OpenCV 错误 dlopen 失败:找不到库“libopencv_java3415.so”

[英]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.

相关问题 Opencv Android:java.lang.UnsatisfiedLinkError:dlopen失败:无法加载库“libopencv_java.so” - Opencv Android: java.lang.UnsatisfiedLinkError: dlopen failed: could not load library “libopencv_java.so” java.lang.UnsatisfiedLinkError:dlopen 失败:找不到库“libopencv_java3.so” - java.lang.UnsatisfiedLinkError: dlopen failed: library “libopencv_java3.so” not found java.lang.UnsatisfiedLinkError:dlopen 失败:找不到库“../../lib/libopencv_core.so” - java.lang.UnsatisfiedLinkError: dlopen failed: library "../../lib/libopencv_core.so" not found 找不到Android中的本机OpenCV UnsatisfiedLinkError libopencv_java.so - Native OpenCV in Android UnsatisfiedLinkError libopencv_java.so not found Android 库:java.lang.UnsatisfiedLinkError:dlopen 失败:找不到库“libgnustl_shared.so” - Android Library: java.lang.UnsatisfiedLinkError: dlopen failed: library "libgnustl_shared.so" not found dlopen失败:未找到库“libtest.so” - dlopen failed: library “libtest.so” not found 带有Android的外部库和JNI:dlopen失败:即使正确设置了SONAME,也找不到库“ libcrypto.so.1.1” - External library and JNI with Android: dlopen failed: library “libcrypto.so.1.1” not found, even with SONAME set correctly Flutter 初始化失败,java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found - Flutter initialization failed, java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found java.lang.UnsatisfiedLinkError:dlopen失败:找不到库“ libutils.so” - java.lang.UnsatisfiedLinkError: dlopen failed: library “libutils.so” not found AndroidRuntime:java.lang.UnsatisfiedLinkError:dlopen 失败:找不到库“libandroidicu.so” - AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libandroidicu.so" not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM