2014-02-24 53 views
0

我遵循這個指南:Unsatified鏈接錯誤:Android的OpenCV的

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

,但我仍然收到此錯誤:

E/AndroidRuntime(916):java.lang.UnsatisfiedLinkError中:無法從loader加載opencv_java248 dalvik.system.PathClassLoader [DexPathList [[zip文件「/data/app/com.example.smartlab-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.smartlab-2 ,/ system/lib]]]:findLibrary返回null

當我cal L該行:

System.loadLibrary(Core.NATIVE_LIBRARY_NAME); 

回答

1

你不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