2014-09-22 48 views
0

我無法在模擬器中查看我的應用程序。我曾嘗試將adb超時時間增加到10000毫秒。結果是一樣的。請告訴我問題是什麼。無法啓動我的Android應用程序

控制檯輸出:

[2014-09-22 12:52:51 - NotificationExample] ------------------------------ 
[2014-09-22 12:52:51 - NotificationExample] Android Launch! 
[2014-09-22 12:52:51 - NotificationExample] adb is running normally. 
[2014-09-22 12:52:51 - NotificationExample] Performing com.example.notificationexample.Notification activity launch 
[2014-09-22 12:52:51 - NotificationExample] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Nexus_7_2012_by_Google' 
[2014-09-22 12:52:51 - NotificationExample] Launching a new emulator with Virtual Device 'AVD_for_Nexus_7_2012_by_Google' 
[2014-09-22 12:54:07 - Emulator] emulator: WARNING: Requested RAM size of 1024MB is too large for your environment, and is reduced to 768MB. 
[2014-09-22 12:54:09 - Emulator] emulator: warning: opening audio input failed 
[2014-09-22 12:54:09 - Emulator] 
[2014-09-22 12:54:11 - NotificationExample] New emulator found: emulator-5554 
[2014-09-22 12:54:11 - NotificationExample] Waiting for HOME ('android.process.acore') to be launched... 
[2014-09-22 13:00:17 - NotificationExample] HOME is up on device 'emulator-5554' 
[2014-09-22 13:00:17 - NotificationExample] Uploading NotificationExample.apk onto device 'emulator-5554' 
[2014-09-22 13:00:20 - NotificationExample] Installing NotificationExample.apk... 
[2014-09-22 13:02:53 - NotificationExample] Failed to install NotificationExample.apk on device 'emulator-5554! 
[2014-09-22 13:02:53 - NotificationExample] (null) 
[2014-09-22 13:02:54 - NotificationExample] Launch canceled! 
[2014-09-22 13:04:07 - NotificationExample] ------------------------------ 
[2014-09-22 13:04:07 - NotificationExample] Android Launch! 
[2014-09-22 13:04:07 - NotificationExample] adb is running normally. 
[2014-09-22 13:04:07 - NotificationExample] Performing com.example.notificationexample.Notification activity launch 
[2014-09-22 13:04:08 - NotificationExample] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD_for_Nexus_7_2012_by_Google' 
[2014-09-22 13:04:08 - NotificationExample] Uploading NotificationExample.apk onto device 'emulator-5554' 
[2014-09-22 13:04:13 - NotificationExample] Installing NotificationExample.apk... 
[2014-09-22 13:06:38 - NotificationExample] Failed to install NotificationExample.apk on device 'emulator-5554! 
[2014-09-22 13:06:38 - NotificationExample] (null) 
[2014-09-22 13:06:49 - NotificationExample] Failed to install NotificationExample.apk on device 'emulator-5554': null 
[2014-09-22 13:06:49 - NotificationExample] com.android.ddmlib.InstallException 
[2014-09-22 13:06:49 - NotificationExample] Launch canceled! 
+0

你能運行模擬器? – 2014-09-22 08:28:22

+0

是的。主屏幕顯示,但我無法解鎖。 – 2014-09-22 08:40:58

+0

模擬器設置也有可能是錯誤的,也許你可以發佈模擬器設置的屏幕截圖? – 2014-09-22 09:23:56

回答

0

確保您的虛擬設備具有有效的SD卡大小(即大於0)

+0

謝謝。我給SD卡的大小爲10 MiB。現在問題解決了。 – 2014-09-22 10:26:05