Eclipse 上的 Android 模拟器不工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14421958/
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 on Eclipse Not Working
提问by nsax91
I've been following the instructions found at http://developer.android.com/training/basics/firstapp/running-app.htmlto run the Hello World app on Eclipse's AVD, but the AVD does not launch and I get the following messages:
我一直在按照http://developer.android.com/training/basics/firstapp/running-app.html上的说明在 Eclipse 的 AVD 上运行 Hello World 应用程序,但是 AVD 没有启动,我得到了以下消息:
[2013-01-20 00:20:59 - MyFirstApp] ------------------------------
[2013-01-20 00:20:59 - MyFirstApp] Android Launch!
[2013-01-20 00:20:59 - MyFirstApp] adb is running normally.
[2013-01-20 00:20:59 - MyFirstApp] Performing com.example.myfirstapp.MainActivity activity launch
[2013-01-20 00:21:00 - MyFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'TestAVD'
[2013-01-20 00:21:00 - MyFirstApp] Launching a new emulator with Virtual Device 'TestAVD'
[2013-01-20 00:21:48 - Emulator] Failed to create Context 0x3005
[2013-01-20 00:21:48 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-01-20 00:21:48 - Emulator] Failed to allocate memory: 8
[2013-01-20 00:21:48 - Emulator]
[2013-01-20 00:21:48 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2013-01-20 00:21:48 - Emulator] Please contact the application's support team for more information.
Also, an error window popped up saying that the ARM emulator exe has stopped working. Any thoughts?
此外,还会弹出一个错误窗口,提示 ARM 模拟器 exe 已停止工作。有什么想法吗?
回答by melvynkim
回答by Juan Andrés Diana
Check 2 things:
检查两件事:
- That you are using 512MB of RAM (the emulator doesn't work properly with more)
- Try turning 'Host GPU' off
- 您正在使用 512MB 的 RAM(模拟器无法正常工作)
- 尝试关闭“主机 GPU”
回答by ansielf
I got this error when trying to run an emulator with a higher resolution than I had my display set to.
我在尝试运行分辨率高于我的显示器设置的分辨率时遇到此错误。
回答by Moin Ahmed
Try running emulator from the command line with GPU
option and make sure that it is working or not.
尝试使用GPU
选项从命令行运行模拟器并确保它正常工作。
-gpu off
Even if it result into the error, go to the eclipse, Right Click on the project and select run my projects as an "Android application". Emulator should start.
即使它导致错误,请转到 eclipse,右键单击该项目并选择将我的项目作为“Android 应用程序”运行。模拟器应该启动。
You can also give a try with enabling/disabling GPU emulation
option for the selected emulator from the AVD manager.
您还可以尝试GPU emulation
从 AVD 管理器中为选定的模拟器启用/禁用选项。
To enable/disable GPU emulation
:
启用/禁用GPU emulation
:
Goto AVD manager -> select android virtual device -> click on Edit -> Hardware tab -> enable/disable GPU emulation.
转到 AVD 管理器 -> 选择 android 虚拟设备 -> 单击编辑 -> 硬件选项卡 -> 启用/禁用 GPU 模拟。
Hope it will work.
希望它会起作用。