2011-09-27 106 views
0

Possible Duplicate:
Why do I get a emulator-5554 disconnected message錯誤:仿真器-5554斷開:

我在Eclipse中運行應用程序礦和控制檯發現了以下結果

[2011-09-27 12:47:58 - AndroidBlackjack] Android Launch! 
[2011-09-27 12:47:58 - AndroidBlackjack] adb is running normally. 
[2011-09-27 12:47:58 - AndroidBlackjack] Performing com.android.blackjack.Setup activity launch 
[2011-09-27 12:47:58 - AndroidBlackjack] Automatic Target Mode: Preferred AVD 'yahoo' is not available. Launching new emulator. 
[2011-09-27 12:47:58 - AndroidBlackjack] Launching a new emulator with Virtual Device 'yahoo' 
[2011-09-27 12:49:52 - AndroidBlackjack] New emulator found: emulator-5554 
[2011-09-27 12:49:52 - AndroidBlackjack] Waiting for HOME ('android.process.acore') to be launched... 
[2011-09-27 12:51:12 - AndroidBlackjack] emulator-5554 disconnected! Cancelling 'com.android.blackjack.Setup activity launch'! 

請幫我 我不明白這一點。

+0

你檢查過你的模擬器是否在運行?它必須在運行eclipse項目之前啓動。 –

+1

沒有沒有檢查它。我將如何檢查它? –

回答

1

解決方案(Eclipse IDE中)

Select & Right Click on Android Project 
Run Configurations 
Go to tab Target 
Enable option Wipe User Data on Emulator launch parameters 
Run Application 

如果你使用的是其他IDE,您可以使用-wipe數據標誌來刪除所有模擬器中運行以前創建的臨時文件重新啓動模擬器。

+1

我已經啓用擦除用戶數據 –

+0

重新啓動模擬器..然後嘗試.. – Hadi

+1

hmmmmmmmmmmmmm好吧,我也會這樣做 –

0

取消的發生是由於三個方面的原因:

  1. 我沒有清理項目 模擬器=>項目=>清潔
  2. 我在小字母書寫的。主要manifest.xml錯誤
  3. 我還沒有刪除窗口的windows防火牆設置
0

我發現的問題在於,該項目沒有在AVD管理器中爲其定義適當的虛擬設備。

所以在eclipse的建議步驟:

Go to "Project"-> Properties-> Android. 
On the right pane see what line is checked in the Project build target. 
Remember the target platform number that appears in the selected line. 
Go to "Windows"-> AVD Manager. 
Check the list of existing Android Virtual Devices for a device that matches the Platform and API level that you have set for your project (see step #2 above). 
If there is no line that includes an AVD for your platform (as I suspect), add it using the "New" button. 
A "Create New Android Virtual Device" window will be opened. set a new device name. in the "Target" selection box choose the right platform for your project. 

再次享受你的模擬器!