gpt4 book ai didi

java - 不满足的链接错误: Android OpenCV

转载 作者:行者123 更新时间:2023-12-01 13:21:29 24 4
gpt4 key购买 nike

我遵循了本指南:

http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html

但我仍然收到此错误:

E/AndroidRuntime(916): java.lang.UnsatisfiedLinkError: 无法从加载器 dalvik.system.PathClassLoader[DexPathList[[zip 文件“/data/app/com.example.smartlab-2.apk”加载 opencv_java248] ],nativeLibraryDirectories=[/data/app-lib/com.example.smartlab-2,/system/lib]]]: findLibrary 返回 null

当我调用此线路时:

System.loadLibrary( Core.NATIVE_LIBRARY_NAME );

最佳答案

你不是吗following this tutorial instead?

您链接的内容没有以下行:

System.loadLibrary( Core.NATIVE_LIBRARY_NAME );

它说:

Note the call to System.loadLibrary(Core.NATIVE_LIBRARY_NAME). This command must be executed exactly once per Java process prior to using any native OpenCV methods. If you don’t call it, you will get UnsatisfiedLink errors. You will also get errors if you try to load OpenCV when it has already been loaded

关于java - 不满足的链接错误: Android OpenCV,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21998366/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com