错误Android:ActivityThread.performLaunchActivity错误

时间:2012-01-08 06:11:50

标签: android eclipse

每次在调试器中启动程序时,我都会收到ActivityThread.performLaunchActivity(ActivityThread $ ActivityRecord,Intent)错误。该程序甚至不会启动!任何帮助将不胜感激!我对这种环境很新。如果您需要更多信息/代码来帮助我,请告诉我。

01-08 06:01:33.812: D/AndroidRuntime(674): Shutting down VM
01-08 06:01:33.822: W/dalvikvm(674): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
01-08 06:01:33.892: E/AndroidRuntime(674): FATAL EXCEPTION: main
01-08 06:01:33.892: E/AndroidRuntime(674): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{Proyecto.Prueba1/Proyecto.Prueba1.ProyectoActivity}: java.lang.ClassNotFoundException: Proyecto.Prueba1.ProyectoActivity
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.os.Handler.dispatchMessage(Handler.java:99)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.os.Looper.loop(Looper.java:137)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.ActivityThread.main(ActivityThread.java:4424)
01-08 06:01:33.892: E/AndroidRuntime(674):  at java.lang.reflect.Method.invokeNative(Native Method)
01-08 06:01:33.892: E/AndroidRuntime(674):  at java.lang.reflect.Method.invoke(Method.java:511)
01-08 06:01:33.892: E/AndroidRuntime(674):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-08 06:01:33.892: E/AndroidRuntime(674):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-08 06:01:33.892: E/AndroidRuntime(674):  at dalvik.system.NativeStart.main(Native Method)
01-08 06:01:33.892: E/AndroidRuntime(674): Caused by: java.lang.ClassNotFoundException: Proyecto.Prueba1.ProyectoActivity
01-08 06:01:33.892: E/AndroidRuntime(674):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
01-08 06:01:33.892: E/AndroidRuntime(674):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
01-08 06:01:33.892: E/AndroidRuntime(674):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
01-08 06:01:33.892: E/AndroidRuntime(674):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
01-08 06:01:33.892: E/AndroidRuntime(674):  ... 11 more

2 个答案:

答案 0 :(得分:0)

看来ProyectoActivity(java.lang.ClassNotFoundException)类对于Dalvik是不可见的。它可能是这个类没有编译(或)不在dalvik正在寻找的类路径中。这是你的主要活动吗?如果是这样,请确保此活动的包名称与AndroidManifest.xml中定义的包名称匹配

答案 1 :(得分:0)

尝试弄清楚你是否正确地导入了类,似乎调试器找不到它。