我正在尝试从 opencv for android 运行一个示例。它不工作。
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{org.opencv.samples.puzzle15/org.opencv.samples.
puzzle15.Puzzle15Activity}: java.lang.ClassNotFoundException: Didn't find class
"org.opencv.samples.puzzle15.Puzzle15Activity" on path:
DexPathList[[zip file "/data/app/org.opencv.samples.puzzle15-
1.apk"],nativeLibraryDirectories=
[/data/app-lib/org.opencv.samples.puzzle15-1, /vendor/lib, /system/lib]]
这是什么意思,我该如何解决?我想要具体的步骤来解决它。
完整日志:
10-25 14:03:09.794: E/AndroidRuntime(958): FATAL EXCEPTION: main
10-25 14:03:09.794: E/AndroidRuntime(958): java.lang.RuntimeException: Unable to
instantiate activity ComponentInfo{org.opencv.samples.puzzle15/
org.opencv.samples.puzzle15.Puzzle15Activity}: java.lang.ClassNotFoundException:
Didn't find class "org.opencv.samples.puzzle15.Puzzle15Activity" on path:
/data/app/org.opencv.samples.puzzle15-2.apk
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.ActivityThread.access$600(ActivityThread.java:141)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.os.Looper.loop(Looper.java:137)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.ActivityThread.main(ActivityThread.java:5041)
10-25 14:03:09.794: E/AndroidRuntime(958): at
java.lang.reflect.Method.invokeNative(Native Method)
10-25 14:03:09.794: E/AndroidRuntime(958): at
java.lang.reflect.Method.invoke(Method.java:511)
10-25 14:03:09.794: E/AndroidRuntime(958): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-25 14:03:09.794: E/AndroidRuntime(958): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
10-25 14:03:09.794: E/AndroidRuntime(958): dalvik.system.NativeStart.main(NativeMethod)
10-25 14:03:09.794: E/AndroidRuntime(958): Caused by: java.lang.ClassNotFoundException:
Didn't find class "org.opencv.samples.puzzle15.Puzzle15Activity" on path:
/data/app/org.opencv.samples.puzzle15-2.apk
10-25 14:03:09.794: E/AndroidRuntime(958): at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
10-25 14:03:09.794: E/AndroidRuntime(958): at
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
10-25 14:03:09.794: E/AndroidRuntime(958): at
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.Instrumentation.newActivity(Instrumentation.java:1054)
10-25 14:03:09.794: E/AndroidRuntime(958): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)