2012-01-12 94 views
0

當我嘗試在手機上運行我的應用程序時,出現這些錯誤。但是有誰知道爲什麼即時通訊出現這些錯誤?提前致謝! 這裏是logcat的錯誤有什麼方法可以導致這些錯誤?:無法啓動活動componentinfo java.lang.nullpointerexception?

01-12 12:35:06.299: D/dalvikvm(12107): GC_EXTERNAL_ALLOC freed 51K, 49% free 2793K/5379K, external 1596K/2108K, paused 42ms 
    01-12 12:35:06.342: D/dalvikvm(12107): GC_EXTERNAL_ALLOC freed 1K, 49% free 2792K/5379K, external 2115K/2641K, paused 33ms 
    01-12 12:35:09.792: D/dalvikvm(12107): GC_EXTERNAL_ALLOC freed 10K, 48% free 2826K/5379K, external 2449K/2722K, paused 37ms 
    01-12 12:38:46.940: W/KeyCharacterMap(12107): Can't open keycharmap file 
    01-12 12:38:46.944: W/KeyCharacterMap(12107): Error loading keycharmap file '/system/usr/keychars/cypress-touchkey.kcm.bin'. hw.keyboards.65537.devname='cypress-touchkey' 
    01-12 12:38:46.944: W/KeyCharacterMap(12107): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 
    01-12 12:38:58.823: D/dalvikvm(12206): GC_EXTERNAL_ALLOC freed 48K, 49% free 2793K/5379K, external 1596K/2108K, paused 67ms 
    01-12 12:38:58.866: D/dalvikvm(12206): GC_EXTERNAL_ALLOC freed 1K, 49% free 2792K/5379K, external 2115K/2641K, paused 32ms 
    01-12 12:39:00.679: D/AndroidRuntime(12206): Shutting down VM 
    01-12 12:39:00.679: W/dalvikvm(12206): threadid=1: thread exiting with uncaught exception (group=0x40015578) 
    01-12 12:39:00.706: E/AndroidRuntime(12206): FATAL EXCEPTION: main 
    01-12 12:39:00.706: E/AndroidRuntime(12206): android.content.ActivityNotFoundException: Unable to find explicit activity class {android.app/android.app.activity3}; have you declared this activity in your AndroidManifest.xml? 
+0

我宣佈它在清單<活動機器人:名字= \t機器人」 activity3" :screenOrientation =‘肖像’ \t機器人:標籤=‘@字符串/ APP_NAME’> – user1144349 2012-01-12 18:18:14

+0

如果添加它,仍然收到錯誤,我建議在你的問題中附加你的'AndroidManifest.xml'的內容。 – 2012-01-12 18:25:10

回答

5
01-12 12:39:00.706: E/AndroidRuntime(12206): android.content.ActivityNotFoundException: Unable to find explicit activity class {android.app/android.app.activity3}; have you declared this activity in your AndroidManifest.xml? 

聲明該Activity命名爲您AndroidManifest.xmlactivity3

+0

有人可以解釋這個嗎?我剛纔說我把它包含在我的清單中@willtate – user1144349 2012-01-12 18:33:18

+0

如果你在你的'AndroidManifest.xml'中聲明瞭'Activity'並且仍然收到相同的錯誤,你應該編輯你的問題並添加你的'AndroidManifest.xml'內容。這將幫助我們幫助你。 – 2012-01-12 18:36:45

+0

@ user1144349:在您發佈之前,您已將其聲明在您的清單中。 – prolink007 2012-01-12 18:37:07

相關問題