2011-09-27 105 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. 

再次享受你的模拟器!