Hi , i am just trying to start opencv in android ndk environment , i just use some opencv sample program in native environment , like giving in sample of opencv lib native-activity
, when i run that program i am getting the following error's
04-07 10:39:01.239: E/AndroidRuntime(6645): FATAL EXCEPTION: main
04-07 10:39:01.239: E/AndroidRuntime(6645): java.lang.ExceptionInInitializerError
04-07 10:39:01.239: E/AndroidRuntime(6645): at java.lang.Class.newInstanceImpl(Native Method)
04-07 10:39:01.239: E/AndroidRuntime(6645): at java.lang.Class.newInstance(Class.java:1409)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.os.Handler.dispatchMessage(Handler.java:99)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.os.Looper.loop(Looper.java:130)
04-07 10:39:01.239: E/AndroidRuntime(6645): at android.app.ActivityThread.main(ActivityThread.java:3687)
04-07 10:39:01.239: E/AndroidRuntime(6645): at java.lang.reflect.Method.invokeNative(Native Method)
04-07 10:39:01.239: E/AndroidRuntime(6645): at java.lang.reflect.Method.invoke(Method.java:507)
04-07 10:39:01.239: E/AndroidRuntime(6645): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
04-07 10:39:01.239: E/AndroidRuntime(6645): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
04-07 10:39:01.239: E/AndroidRuntime(6645): at dalvik.system.NativeStart.main(Native Method)
04-07 10:39:01.239: E/AndroidRuntime(6645): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load first-opencvjni: findLibrary returned null
04-07 10:39:01.239: E/AndroidRuntime(6645): at java.lang.Runtime.loadLibrary(Runtime.java:429)
04-07 10:39:01.239: E/AndroidRuntime(6645): at java.lang.System.loadLibrary(System.java:554)
04-07 10:39:01.239: E/AndroidRuntime(6645): at my.project.MyFirstOpenCVJNI.MyFirstOpenCVJNI.<clinit>(MyFirstOpenCVJNI.java:27)
04-07 10:39:01.239: E/AndroidRuntime(6645): ... 15 more
04-07 10:43:49.589: W/dalvikvm(6740): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lmy/project/MyFirstOpenCVJNI/MyFirstOpenCVJNI;
04-07 10:43:49.589: W/dalvikvm(6740): Class init failed in newInstance call (Lmy/project/MyFirstOpenCVJNI/MyFirstOpenCVJNI;)
04-07 10:43:49.589: W/dalvikvm(6740): threadid=1: thread exiting with uncaught exception (group=0x40018578)
04-07 10:43:49.589: E/AndroidRuntime(6740): FATAL EXCEPTION: main
04-07 10:43:49.589: E/AndroidRuntime(6740): java.lang.ExceptionInInitializerError
04-07 10:43:49.589: E/AndroidRuntime(6740): at java.lang.Class.newInstanceImpl(Native Method)
04-07 10:43:49.589: E/AndroidRuntime(6740): at java.lang.Class.newInstance(Class.java:1409)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.os.Handler.dispatchMessage(Handler.java:99)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.os.Looper.loop(Looper.java:130)
04-07 10:43:49.589: E/AndroidRuntime(6740): at android.app.ActivityThread.main(ActivityThread.java:3687)
04-07 10:43:49.589: E/AndroidRuntime(6740): at java.lang.reflect.Method.invokeNative(Native Method)
04-07 10:43:49.589: E/AndroidRuntime(6740): at java.lang.reflect.Method.invoke(Method.java:507)
04-07 10:43:49.589: E/AndroidRuntime(6740): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
04-07 10:43:49.589: E/AndroidRuntime(6740): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
04-07 10:43:49.589: E/AndroidRuntime(6740): at dalvik.system.NativeStart.main(Native Method)
04-07 10:43:49.589: E/AndroidRuntime(6740): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load first-opencvjni: findLibrary returned null
04-07 10:43:49.589: E/AndroidRuntime(6740): at java.lang.Runtime.loadLibrary(Runtime.java:429)
04-07 10:43:49.589: E/AndroidRuntime(6740): at java.lang.System.loadLibrary(System.java:554)
04-07 10:43:49.589: E/AndroidRuntime(6740): at my.project.MyFirstOpenCVJNI.MyFirstOpenCVJNI.<clinit>(MyFirstOpenCVJNI.java:27)
04-07 10:43:49.589: E/AndroidRuntime(6740): ... 15 more