android中片段中的ClassNotFound异常

时间:2012-07-28 19:58:43

标签: java android

我有一个项目,我在android sdk 16(ADT 16)中使用了正常运行的片段,但是当我在adt20上运行它然后它给了我这个例外:

 java.lang.ClassNotFoundException

这是我的日志:

07-29 03:09:00.608: W/dalvikvm(467): Unable to resolve superclass of Lcom/powergroup/splitview/SplitviewActivity; (11)
07-29 03:09:00.608: W/dalvikvm(467): Link of class 'Lcom/powergroup/splitview/SplitviewActivity;' failed
07-29 03:09:00.667: D/AndroidRuntime(467): Shutting down VM
07-29 03:09:00.677: W/dalvikvm(467): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
07-29 03:09:00.728: E/AndroidRuntime(467): FATAL EXCEPTION: main
07-29 03:09:00.728: E/AndroidRuntime(467): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.powergroup.splitview/com.powergroup.splitview.SplitviewActivity}: java.lang.ClassNotFoundException: com.powergroup.splitview.SplitviewActivity in loader dalvik.system.PathClassLoader[/data/app/com.powergroup.splitview-2.apk]
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.os.Looper.loop(Looper.java:123)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.ActivityThread.main(ActivityThread.java:4627)
07-29 03:09:00.728: E/AndroidRuntime(467):  at java.lang.reflect.Method.invokeNative(Native Method)
07-29 03:09:00.728: E/AndroidRuntime(467):  at java.lang.reflect.Method.invoke(Method.java:521)
07-29 03:09:00.728: E/AndroidRuntime(467):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-29 03:09:00.728: E/AndroidRuntime(467):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-29 03:09:00.728: E/AndroidRuntime(467):  at dalvik.system.NativeStart.main(Native Method)
07-29 03:09:00.728: E/AndroidRuntime(467): Caused by: java.lang.ClassNotFoundException: com.powergroup.splitview.SplitviewActivity in loader dalvik.system.PathClassLoader[/data/app/com.powergroup.splitview-2.apk]
07-29 03:09:00.728: E/AndroidRuntime(467):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
07-29 03:09:00.728: E/AndroidRuntime(467):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
07-29 03:09:00.728: E/AndroidRuntime(467):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
07-29 03:09:00.728: E/AndroidRuntime(467):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
07-29 03:09:00.728: E/AndroidRuntime(467):  ... 11 more
07-29 03:09:03.568: I/Process(467): Sending signal. PID: 467 SIG: 9

如果是错误,那么为什么它在skd 16中正常运行?我完全被困在这里:(

0 个答案:

没有答案