2 xiliaoxia xiliaoxia 于 2014.03.21 09:07 提问

把源代码import到eclipse之后调试出现的问题

03-21 00:59:49.801: D/AndroidRuntime(268): Shutting down VM
03-21 00:59:49.801: W/dalvikvm(268): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-21 00:59:49.921: E/AndroidRuntime(268): FATAL EXCEPTION: main
03-21 00:59:49.921: E/AndroidRuntime(268): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.crazyit.linearlayout/org.crazyit.linearlayout.LinearLayoutTest}: java.lang.ClassNotFoundException: org.crazyit.linearlayout.LinearLayoutTest in loader dalvik.system.PathClassLoader[/data/app/org.crazyit.linearlayout-1.apk]
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.os.Handler.dispatchMessage(Handler.java:99)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.os.Looper.loop(Looper.java:123)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-21 00:59:49.921: E/AndroidRuntime(268): at java.lang.reflect.Method.invokeNative(Native Method)
03-21 00:59:49.921: E/AndroidRuntime(268): at java.lang.reflect.Method.invoke(Method.java:521)
03-21 00:59:49.921: E/AndroidRuntime(268): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-21 00:59:49.921: E/AndroidRuntime(268): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-21 00:59:49.921: E/AndroidRuntime(268): at dalvik.system.NativeStart.main(Native Method)
03-21 00:59:49.921: E/AndroidRuntime(268): Caused by: java.lang.ClassNotFoundException: org.crazyit.linearlayout.LinearLayoutTest in loader dalvik.system.PathClassLoader[/data/app/org.crazyit.linearlayout-1.apk]
03-21 00:59:49.921: E/AndroidRuntime(268): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
03-21 00:59:49.921: E/AndroidRuntime(268): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
03-21 00:59:49.921: E/AndroidRuntime(268): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-21 00:59:49.921: E/AndroidRuntime(268): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
03-21 00:59:49.921: E/AndroidRuntime(268): ... 11 more

1个回答

u014297542
u014297542   2014.03.23 11:54

重启一下服务试试。。。。。

Csdn user default icon
上传中...
上传图片
插入图片