2012-02-29 113 views
0

我試圖運行一個例子關閉E3roid的例子。除了我以外,我在頁面上關閉了一個部隊。這是logcat錯誤。通過查看它,你能告訴我它的含義和問題是什麼?這個LogCat錯誤是什麼意思?

02-28 20:31:51.429: D/AndroidRuntime(1779): Shutting down VM 
02-28 20:31:51.429: W/dalvikvm(1779): threadid=1: thread exiting with uncaught exception (group=0x40015578) 
02-28 20:31:51.429: E/AndroidRuntime(1779): FATAL EXCEPTION: main 
02-28 20:31:51.429: E/AndroidRuntime(1779): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{and.roid/and.roid.AndroidActivity}: java.lang.ClassNotFoundException: and.roid.AndroidActivity in loader dalvik.system.PathClassLoader[/data/app/and.roid-1.apk] 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.ActivityThread.access$1500(ActivityThread.java:117) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.os.Handler.dispatchMessage(Handler.java:99) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.os.Looper.loop(Looper.java:130) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.ActivityThread.main(ActivityThread.java:3687) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at java.lang.reflect.Method.invokeNative(Native Method) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at java.lang.reflect.Method.invoke(Method.java:507) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at dalvik.system.NativeStart.main(Native Method) 
02-28 20:31:51.429: E/AndroidRuntime(1779): Caused by: java.lang.ClassNotFoundException: and.roid.AndroidActivity in loader dalvik.system.PathClassLoader[/data/app/and.roid-1.apk] 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at java.lang.ClassLoader.loadClass(ClassLoader.java:551) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565) 
02-28 20:31:51.429: E/AndroidRuntime(1779):  ... 11 more 
02-28 20:31:57.820: I/Process(1779): Sending signal. PID: 1779 SIG: 9 
02-28 20:34:48.691: D/AndroidRuntime(2072): Shutting down VM 
02-28 20:34:48.691: W/dalvikvm(2072): threadid=1: thread exiting with uncaught exception (group=0x40015578) 
02-28 20:34:48.691: E/AndroidRuntime(2072): FATAL EXCEPTION: main 
02-28 20:34:48.691: E/AndroidRuntime(2072): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{and.roid/and.roid.AndroidActivity}: java.lang.ClassNotFoundException: and.roid.AndroidActivity in loader dalvik.system.PathClassLoader[/data/app/and.roid-1.apk] 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.ActivityThread.access$1500(ActivityThread.java:117) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.os.Handler.dispatchMessage(Handler.java:99) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.os.Looper.loop(Looper.java:130) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.ActivityThread.main(ActivityThread.java:3687) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at java.lang.reflect.Method.invokeNative(Native Method) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at java.lang.reflect.Method.invoke(Method.java:507) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at dalvik.system.NativeStart.main(Native Method) 
02-28 20:34:48.691: E/AndroidRuntime(2072): Caused by: java.lang.ClassNotFoundException: and.roid.AndroidActivity in loader dalvik.system.PathClassLoader[/data/app/and.roid-1.apk] 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at java.lang.ClassLoader.loadClass(ClassLoader.java:551) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565) 
02-28 20:34:48.691: E/AndroidRuntime(2072):  ... 11 more 
02-28 20:34:56.511: I/Process(2072): Sending signal. PID: 2072 SIG: 9 

回答

1

您是否已將AndroidActivity添加到您的AndroidManifest?

+0

很酷,但我該如何申報? – 2012-02-29 01:58:58

+0

'' 不要忘了點,把它放在你的activity元素中 – FabianCook 2012-02-29 02:07:07

+0

謝謝! smartlemon aka獲勝者 – 2012-02-29 02:24:55

0

這可能意味着您沒有在清單文件中正確聲明您的活動。通常會發生的是,您將進行一項活動,但忘記將其包含在清單中,即出現這些稍微陌生的消息時。

+0

如何在這個Android清單中聲明它,如果該文件被稱爲「機器人」? <?XML版本= 「1.0」 編碼= 「UTF-8」?> <應用 機器人:圖標= 「@繪製/ ic_launcher」 機器人:標籤= 「@串/ APP_NAME」> <活動 機器人:名稱=「.AndroidActivity」 android:label =「@ string/app_name」> <類機器人:名字=」 android.intent.category.LAUNCHER」 /> 2012-02-29 01:49:58

+0

爲什麼你' '_inside_ the intent-filter'? – gobernador 2012-02-29 02:10:26