【问题标题】:Error:emulator-5554 disconnected: [duplicate]错误:emulator-5554 断开连接:[重复]
【发布时间】:2011-09-27 07:56:51
【问题描述】:

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

我在 eclipse 中运行我的应用程序,在 console

中找到以下结果
[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'!

请帮帮我 我不明白这个。

【问题讨论】:

  • 您是否检查过您的模拟器是否正在运行?它必须在运行 eclipse 项目之前启动。
  • no 没查。我将如何检查它?

标签: java android eclipse sdk


【解决方案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 标志重新启动模拟器,以删除模拟器在之前运行中创建的所有临时文件。

【讨论】:

  • 我已经启用了擦除用户数据
  • 重启模拟器..再试试..
  • hmmmmmmmmmmmmm 好的,我也会这样做
  • 重启模拟器甚至重启了整个系统但没有效果
【解决方案2】:

取消的原因有以下三个:

  1. 我没有清理项目 模拟器 => 项目 => 干净
  2. 我在 manifest.xml 中错误地将 .main 写成了小写字母
  3. 我没有删除windows的windows防火墙设置

【讨论】:

    【解决方案3】:

    我发现的问题在于该项目没有在 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.
    

    再次享受您的模拟器!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-20
      • 2011-03-10
      • 2012-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多