在 Eclipse 上运行 Android 模拟器的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10786161/
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
Problems running the Android emulator on Eclipse
提问by user1421874
So I want to get into making Apps for Android. I read and followed this tutorialto set up everything I need, but when running my first little App, I get the following messages:
所以我想开始为 Android 制作应用程序。我阅读并遵循本教程来设置我需要的一切,但是在运行我的第一个小应用程序时,我收到以下消息:
[2012-05-28 16:09:54 - HelloAndroid] Android Launch!
[2012-05-28 16:09:54 - HelloAndroid] adb is running normally.
[2012-05-28 16:09:54 - HelloAndroid] Performing jannis.test.helloandroid.HelloAndroid activity launch
[2012-05-28 16:09:54 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'MyAVD'
[2012-05-28 16:09:54 - HelloAndroid] Launching a new emulator with Virtual Device 'MyAVD'
[2012-05-28 16:10:55 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-05-28 16:10:55 - Emulator] emulator: Failed to open the HAX device!
[2012-05-28 16:10:55 - Emulator] HAX is not working and emulator runs in emulation mode
[2012-05-28 16:10:55 - Emulator]
[2012-05-28 16:10:55 - Emulator] emulator: Open HAX device failed
[2012-05-28 16:10:55 - Emulator]
[2012-05-28 16:10:55 - Emulator] Failed to allocate memory: 1455
[2012-05-28 16:10:55 - Emulator]
[2012-05-28 16:10:55 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2012-05-28 16:10:55 - Emulator] Please contact the application's support team for more information.
Besides the fact that I have no idea what it means, of course I did some searching, and someone here had about the same problem: Running the new Intel emulator for Android
除了我不知道这意味着什么的事实之外,我当然做了一些搜索,这里有人遇到了同样的问题:Running the new Intel emulator for Android
There it is suggested one install the Intel Hardware Accelerated Execution Managerusing the SDK Manager. I try it and then, again, get an error:
建议使用 SDK 管理器安装英特尔硬件加速执行管理器。我尝试了一下,然后再次出现错误:
Preparing to install archives
Unexpected Error installing 'Intel Hardware Accelerated Execution Manager, revision 1':
org.eclipse.swt.SWTException: Widget is disposed
I have no idea what to do. Can anyone help me out here, please?
我不知道该怎么做。任何人都可以帮助我吗?
Regards
问候
回答by Mattias Isegran Bergander
Apart from the HAX stuff, try reducing the memory you give to the device to 800MB for example. Looks like it is requesting a bit too much.
除了 HAX 的东西,例如尝试将您提供给设备的内存减少到 800MB。看来要求有点高了。
回答by Yaniv
Please refer to this page: Configuring Virtual Machine Acceleration
请参考此页面:配置虚拟机加速