Hi All, I'm trying to get just the sample programs to run in an emulator for opencv4android. I've followed the tutorial but continue to get errors when running the program. It compiles fine. I've installed OpenCV_2.4.3.2_Manager_2.4_armeabi.apk on my emulator, which is runnning android 3.0 (API 11). Whenever I install any sample program, for instance tutorial 1, I get errors similar to the following in logcat:
E/AndroidRuntime( 788): FATAL EXCEPTION: main
E/AndroidRuntime( 788): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.opencv.samples.tutorial1/org.opencv.samples.tutorial1.Sample1Java}: java.lang.ClassNotFoundException: org.opencv.samples.tutorial1.Sample1Java
E/AndroidRuntime( 788): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
E/AndroidRuntime( 788): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime( 788): at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime( 788): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime( 788): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 788): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 788): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 788): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 788): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 788): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 788): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 788): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 788): Caused by: java.lang.ClassNotFoundException: org.opencv.samples.tutorial1.Sample1Java
E/AndroidRuntime( 788): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
E/AndroidRuntime( 788): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime( 788): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime( 788): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
E/AndroidRuntime( 788): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
E/AndroidRuntime( 788): ... 11 more
Does anyone have any sugggestions? Thanks!