Android AVD 模拟器在加载时挂起
我似乎弄乱了 AVD Emulator,需要一些专家帮助来解决问题。
以下是症状:
- 当我尝试从 AVD 管理器打开 my_avd(我的默认 avd)时,加载需要很长时间(大约 10 - 20 分钟)。加载完成后,它只是挂起并且不响应任何点击(解锁模式!)。
- 我尝试在这个模拟器上加载我的应用程序,它被放弃了: “emulator-5554 已断开连接!正在取消‘com.app.xyz.xyzactivity 活动启动’!”
当尝试从终端启动“my_avd”时(“...android-sdk-linux/tools $ ./emulator -avd my_avd”),加载时间较短,但会因“分段错误”错误而放弃在终端中。
- 我已尝试删除&多次重新创建 my_avd,但没有成功。
- 也尝试过将“设备内存大小”增加到 1024,但即使这样也没有帮助。
- 在创建 my_avd 时尝试了“快照:已启用”模式,但这只会使问题变得更糟。
- 已经重新安装过eclipse、android sdk等
我在 Ubuntu 11.x(安装了 ia32-libs 的 x64 处理器)上使用 Eclipse、Android 4.0 (API 14)。
任何帮助/建议将不胜感激。
预先感谢
拉姆
I seem to have messed up AVD Emulator and need some expert help in solving the problem.
Here are the symptoms:
- When I try to open my_avd (my default avd) from AVD Manager, it takes a very long time to load (approx 10 - 20 mins). When loading completes, it just hangs and does not respond to any clicks (unlock mode!).
- I try loading my app on this emulator, it is abandoned with:
"emulator-5554 disconnected! Cancelling 'com.app.xyz.xyzactivity activity launch'!" When trying to launch 'my_avd' from terminal ('...android-sdk-linux/tools $ ./emulator -avd my_avd'), the load time is less, but it abandons with a "Segmentation fault" error in terminal.
- I have tried deleting & re-creating my_avd multiple times, but no go.
- Have tried increasing the 'Device ram size' to 1024 also, but even that did not help.
- Tried the 'Snapshot: Enabled' mode while creating my_avd, but that only worsens the problem.
- Have reinstalled eclipse, android sdk, etc.
I am using Eclipse, Android 4.0 (API 14) on Ubuntu 11.x (x64 processor with ia32-libs installed).
Any help/ suggestions will be highly appreciated.
Thanks in advance
Ram
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试另一个 API 版本。我在 API 14 和 15 上遇到了这个问题,但在其他所有 API 上都工作得很好。如果您无法让它与 API 8 或 10 等一起工作,那么您的 AVD 模拟器就有问题。我建议您让 Eclipse 为您选择设备(根据您的目标版本和 AVD 管理器上注册的设备)。检查设备的配置并确保它们与您正在模拟的真实设备相同。这是 Motorola_spice_key (android 2.3.3) 配置:
试试这个。如果失败,那么您可能需要重新安装模拟器。
Try another API version. I have this problem with API 14 and 15, but works fine with all the others. If you can't get it to work with, for example, the API 8 or 10 then you got a problem with your AVD emulator. I would suggest you to let the Eclipse choose the device for you (based on the your target version and the devices registered on your AVD Manager). Check the configurations of the device and make sure that they are the same of the real device you're emulating. Here goes the Motorola_spice_key (android 2.3.3) config:
Try this one. If fails, then you might have to reinstall the emulator.