error happened when Application development with static initialization

asked 2012-11-26 03:34:56 -0500

Jack gravatar image

updated 2012-11-26 04:07:09 -0500

it happend in opencv4android 2.4.2. I follow the step in this website: http://docs.opencv.org/trunk/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#application-development-with-static-initialization

And My application project doesn’t have a JNI part.thanks!here is the log:

E/OpenCV/StaticHelper(9987): OpenCV error: Cannot load info library for OpenCV

E/Test01Activity::Test01Activity(9987): Cannot init OpenCV

E/AndroidRuntime(9987): FATAL EXCEPTION: main

E/AndroidRuntime(9987): java.lang.UnsatisfiedLinkError: Native method not found: org.opencv.core.Mat.n_Mat:()J

E/AndroidRuntime(9987): at org.opencv.core.Mat.n_Mat(Native Method)

E/AndroidRuntime(9987): at org.opencv.core.Mat.<init>(Mat.java:181)

E/AndroidRuntime(9987): at com.example.opencvtest01.EyeDetection.<init>(EyeDetection.java:44)

E/AndroidRuntime(9987): at com.example.opencvtest01.Test01Activity.onCreate(Test01Activity.java:182)

E/AndroidRuntime(9987): at android.app.Activity.performCreate(Activity.java:5134)

E/AndroidRuntime(9987): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)

E/AndroidRuntime(9987): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)

E/AndroidRuntime(9987): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2211)

E/AndroidRuntime(9987): at android.app.ActivityThread.access$600(ActivityThread.java:149)

E/AndroidRuntime(9987): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1300)

E/AndroidRuntime(9987): at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(9987): at android.os.Looper.loop(Looper.java:153)

E/AndroidRuntime(9987): at android.app.ActivityThread.main(ActivityThread.java:5104)

E/AndroidRuntime(9987): at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(9987): at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime(9987): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)

E/AndroidRuntime(9987): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)

E/AndroidRuntime(9987): at dalvik.system.NativeStart.main(Native Method)

E/AppErrorDialog(26340): Failed to get ILowStorageHandle instance

edit retag flag offensive close merge delete

Comments

After I push the libs(libopencv_java.so) to the system/lib folder in the phone , the problem disappear.

Jack gravatar imageJack ( 2012-11-27 03:23:15 -0500 )edit