错误:emulator-5554已断开连接:

时间:2011-09-27 07:56:52

标签: java android eclipse sdk

  

可能重复:
  Why do I get a emulator-5554 disconnected message

我在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'!

请帮帮我 我不明白这一点。

3 个答案:

答案 0 :(得分: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-data标志重新启动模拟器,以删除模拟器在之前运行中创建的所有临时文件。

答案 1 :(得分:0)

取消的原因有三个:

  1. 我没有清理项目 emulator => project =>清洁
  2. 我错误地用 manifest.xml 中的小写字母写了 .main
  3. 我没有删除窗口的Windows防火墙设置

答案 2 :(得分: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.

再次享受您的模拟器!