Android 模拟器拒绝启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3433315/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android emulator refuses to boot
提问by Karen
I'm an Android newbie trying to learn how to port one of my apps to the Android platform. I've been following this tutorial:
我是一名 Android 新手,正在尝试学习如何将我的一个应用程序移植到 Android 平台。我一直在关注本教程:
http://www.vogella.de/articles/Android/article.html#overview
http://www.vogella.de/articles/Android/article.html#overview
I'm stuck unable to boot up the emulator :( When I tell it to start, it would just stick at the "Android" boot animation for hours on end. I searched online and found some pages talking about disabling the boot animation. I did so and tried again. There's no boot animation (just the word "Android" flashing), but it's still hours with no sign of booting. 'top' shows an app called 'emulator' using a lot of CPU.
我被困在无法启动模拟器:( 当我告诉它启动时,它只会连续几个小时停留在“Android”启动动画上。我在网上搜索并找到了一些关于禁用启动动画的页面。我这样做并再次尝试。没有启动动画(只有“Android”这个词闪烁),但仍然有几个小时没有启动迹象。“top”显示一个名为“模拟器”的应用程序使用了大量 CPU。
Am I doing something wrong? My system is an AMD Athlon X2 dual-core QL-60, 1900 MHz with 3GB ram.
难道我做错了什么?我的系统是 AMD Athlon X2 双核 QL-60,1900 MHz,3GB 内存。
Thanks for any help you can offer.
谢谢你的尽心帮助。
回答by Jay
I had this problem and fixed it by deleting the emulator and creating a new one. In eclipse:
我遇到了这个问题并通过删除模拟器并创建一个新的模拟器来修复它。在日食中:
- Menu Window -> Android SVK and AVD Manager
- Select Virtual devices (should be selected already)
- Select the emulator giving you problems
- Click edit to see the setting and remember them, click cancel.
- Click delete to delete the emulator.
- CLick create to create a new one that is the same as the old one.
- Click start.
- 菜单窗口 -> Android SVK 和 AVD 管理器
- 选择虚拟设备(应该已经选择了)
- 选择给你问题的模拟器
- 单击编辑以查看设置并记住它们,单击取消。
- 单击删除以删除模拟器。
- 单击创建以创建一个与旧的相同的新的。
- 点击开始。
It started in about 30 seconds after I did that.
它在我这样做后大约 30 秒内开始。
Normally the emulator starts in about 2-3 minutes for me. Then it mysteriously stopped working. I was seeing boot animation for 30 minutes before I gave up.
通常模拟器会在大约 2-3 分钟内启动。然后它神秘地停止工作。在我放弃之前,我看了 30 分钟的开机动画。
- Note #1: Doing this will wipe your user data.
- Note #2: As mentioned else where, it's a good idea to check "Enabled" for the snapshot, this lets you do faster startup next time.
- Note #3: Also my new emulator came up in chinese. That's kinda of weird :)
- 注意#1:这样做会擦除您的用户数据。
- 注意#2:正如其他地方提到的,为快照选中“已启用”是个好主意,这可以让您下次更快地启动。
- 注意#3:我的新模拟器也是中文的。这有点奇怪:)
回答by mobiledev Alex
Android emulator release 9 has new "snapshot" feature. You can save state of emulator(make image of emulator) and avoid booting when you start the emulator.
Android 模拟器版本 9 具有新的“快照”功能。您可以保存模拟器的状态(制作模拟器的映像)并避免在启动模拟器时启动。
回答by Delecti
I see a similar problem while attempting to run applications on an emulator while the emulator isn't started yet. I find that starting the emulator manually via the "Window > Android SDK and AVD Manager" will load in just a couple minutes or faster, as expected. After the emulator is started manually in this way, you can load applications into it without issue.
在模拟器尚未启动的情况下尝试在模拟器上运行应用程序时,我看到了类似的问题。我发现通过“窗口 > Android SDK 和 AVD 管理器”手动启动模拟器将在几分钟或更短时间内加载,正如预期的那样。以这种方式手动启动模拟器后,您可以毫无问题地将应用程序加载到其中。
回答by bokks
I faced same problem on my laptop using I5 8GB RAM. The only solution that worked for me was connecting the laptop charger when launching the emulator. May sound wierd but this always works for me.
我在使用 I5 8GB RAM 的笔记本电脑上遇到了同样的问题。唯一对我有用的解决方案是在启动模拟器时连接笔记本电脑充电器。可能听起来很奇怪,但这对我总是有效。