为什么我无法从Eclipse引导一个1024 MB RAM的AVD? [英] Why can't I boot an AVD from Eclipse with 1024 MB of RAM?

查看:167
本文介绍了为什么我无法从Eclipse引导一个1024 MB RAM的AVD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,像很多人一样,使用Eclipse开发Android,即使使用快速的机器,我也注意到模拟器运行缓慢。



我搜索SO的任何提示,使其运行更快,我跑过:



设置AVD时,您必须手动编辑配置文件才能修复,存在常见问题。文件位于 C:\Documents and Settings\username\.android\avd\\\
ame_of_avd.avd\config.ini



更改内存设置

  hw.ramSize = 1024 

to

  hw.ramSize = 1024MB 

(不要在记事本中启用换行)。



保存文件并重新打开avd。
这对我有用。


So, like a lot of people starting Android development with Eclipse, even with a fast machine, I notice that the emulator runs frustratingly slow.

I search SO for any tips to make it run faster and I run across this question, whose top answer suggests a couple of things, including making the AVD have more RAM. They suggest 1024MB:

Sounds good. But when I try to launch it, I get this:

Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

If I set it to 512MB (up from the default 256MB) it launches fine.

But why, on a Windows 7 x64 machine with 12GB of physical RAM can I not allocate 1024MB to an AVD? Is it an Eclipse limitation? Emulator limitation? Java limitation? I presume the person in that other question got it working but I've yet to figure out how and most of the responses I see elsewhere say "yeah dial it down to 512MB" which is not the answer I'm looking for.

解决方案

From Galaxy s3 emulator:

There is a common problem when setting up the AVD that you have to manually edit the config file to fix. File is located at C:\Documents and Settings\username\.android\avd\name_of_avd.avd\config.ini

Change the memory settings from

hw.ramSize=1024

to

hw.ramSize=1024MB

(Do not enable word wrap in notepad).

Save the file and reopen the avd. This worked for me.

这篇关于为什么我无法从Eclipse引导一个1024 MB RAM的AVD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆