我遵循了这个指南:
但我仍然收到此错误:
E / AndroidRuntime(916):java.lang.UnsatisfiedLinkError:无法从loader dalvik.system.PathClassLoader加载opencv_java248 [DexPathList [[zip file“/ data / app / com.example.smartlab-2.apk” ],nativeLibraryDirectories = [/ data / app-lib / com.example.smartlab-2,/ system / lib]]]:findLibrary返回null
当我打电话给这一行时:
System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
答案 0 :(得分:1)
不是你following this tutorial instead?
你链接的那个没有这行:
System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
它说:
请注意对System.loadLibrary(Core.NATIVE_LIBRARY_NAME)的调用。这个 在使用之前,每个Java进程必须执行一次命令 任何原生的OpenCV方法。如果你不打电话,你会得到 不满意的链接错误。如果您尝试加载,也会出错 OpenCV已经加载