下面是log
12-08 13:47:09.351: E/Trace(1590): error opening trace file: No such file or directory (2)
12-08 13:47:09.351: W/Trace(1590): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:09.351: W/Trace(1590): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:09.351: W/Trace(1590): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:09.381: W/ActivityThread(1590): Application com.example.b is waiting for the debugger on port 8100...
12-08 13:47:11.902: W/Trace(1590): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:11.912: W/Trace(1590): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:11.962: W/dalvikvm(1590): threadid=1: thread exiting with uncaught exception (group=0xb5d7d908)
12-08 13:47:12.301: E/AndroidRuntime(1590): FATAL EXCEPTION: main
12-08 13:47:12.301: E/AndroidRuntime(1590): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.b/com.example.b.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.b.MainActivity" on path: /data/app/com.example.b-1.apk
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.os.Handler.dispatchMessage(Handler.java:99)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.os.Looper.loop(Looper.java:137)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.ActivityThread.main(ActivityThread.java:5039)
12-08 13:47:12.301: E/AndroidRuntime(1590): at java.lang.reflect.Method.invokeNative(Native Method)
12-08 13:47:12.301: E/AndroidRuntime(1590): at java.lang.reflect.Method.invoke(Method.java:511)
12-08 13:47:12.301: E/AndroidRuntime(1590): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-08 13:47:12.301: E/AndroidRuntime(1590): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-08 13:47:12.301: E/AndroidRuntime(1590): at dalvik.system.NativeStart.main(Native Method)
12-08 13:47:12.301: E/AndroidRuntime(1590): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.b.MainActivity" on path: /data/app/com.example.b-1.apk
12-08 13:47:12.301: E/AndroidRuntime(1590): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
12-08 13:47:12.301: E/AndroidRuntime(1590): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-08 13:47:12.301: E/AndroidRuntime(1590): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
12-08 13:47:12.301: E/AndroidRuntime(1590): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
12-08 13:47:12.301: E/AndroidRuntime(1590): ... 11 more
12-08 13:47:50.512: E/Trace(1805): error opening trace file: No such file or directory (2)
12-08 13:47:50.512: W/Trace(1805): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:50.522: W/Trace(1805): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:50.522: W/Trace(1805): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:50.572: W/Trace(1805): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:50.572: W/Trace(1805): Unexpected value from nativeGetEnabledTags: 0
12-08 13:47:50.572: W/dalvikvm(1805): threadid=1: thread exiting with uncaught exception (group=0xb5d7d908)
12-08 13:47:50.612: E/AndroidRuntime(1805): FATAL EXCEPTION: main
12-08 13:47:50.612: E/AndroidRuntime(1805): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.b/com.example.b.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.b.MainActivity" on path: /data/app/com.example.b-1.apk
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.os.Handler.dispatchMessage(Handler.java:99)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.os.Looper.loop(Looper.java:137)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.ActivityThread.main(ActivityThread.java:5039)
12-08 13:47:50.612: E/AndroidRuntime(1805): at java.lang.reflect.Method.invokeNative(Native Method)
12-08 13:47:50.612: E/AndroidRuntime(1805): at java.lang.reflect.Method.invoke(Method.java:511)
12-08 13:47:50.612: E/AndroidRuntime(1805): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-08 13:47:50.612: E/AndroidRuntime(1805): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-08 13:47:50.612: E/AndroidRuntime(1805): at dalvik.system.NativeStart.main(Native Method)
12-08 13:47:50.612: E/AndroidRuntime(1805): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.b.MainActivity" on path: /data/app/com.example.b-1.apk
12-08 13:47:50.612: E/AndroidRuntime(1805): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
12-08 13:47:50.612: E/AndroidRuntime(1805): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-08 13:47:50.612: E/AndroidRuntime(1805): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
12-08 13:47:50.612: E/AndroidRuntime(1805): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
12-08 13:47:50.612: E/AndroidRuntime(1805): ... 11 more
求大神帮帮忙啊。。。。
------解决思路----------------------
找不到包 请检查下结构目录
------解决思路----------------------
你的项目是不是用到第三方的jar包了
------解决思路----------------------
clean一下你的项目。。检查一下你的包名是否和注册的相同。。
------解决思路----------------------
检查Mainifest.xml里注册的Activity是否与实现时的包结构相同
------解决思路----------------------
Didn't find class "com.example.b.MainActivity" on path: /data/app/com.example.b-1.apk