Android模拟器无法分配内存8 [英] Android emulator failed to allocate memory 8
问题描述
当我尝试从Eclipse中运行我WXGA800模拟器它给这样的错误
When I try to run my WXGA800 emulator from Eclipse it's giving an error like 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.
我查了以下链接也
I checked the following links also
我曾尝试降低模拟器RAM容量和增加的Java堆大小和Ram容量,但仍我面临着同样的错误。
I have tried reducing RAM size in emulator and increasing Java heapsize and ramsize but still I am facing the same error.
推荐答案
更新:与Android SDK管理器版本21起,解决的办法是修改 C:\用户\ <使用者> \机器人\ AVD \< AVD-配置文件名称> .avd \ config.ini文件
和更改值
Update: Starting with Android SDK Manager version 21, the solution is to edit C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini
and change the value
hw.ramSize=1024
到
hw.ramSize=1024MB
仿真器实在是太慢了,<删除>希望他们将释放英特尔图片很快如果你想改变它使用新的API17英特尔的x86图像。(<一href="http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/">HAXM, <一href="http://www.developer.com/ws/android/development-tools/haxm-speeds-up-the-android-emulator.html">Configuration)
The emulator is really slow, hope they will release the intel images soon use the new API17 Intel x86 images if you want to change it .. (HAXM, Configuration)
此前的Android SDK管理器的版本:
有同样的问题与内置WXGA800皮肤。我得到它的工作通过编辑虚拟设备设置为:
Had the same problem with the built-in WXGA800 skin. I got it working by editing the virtual device setup to:
- 目标4.0.3 API 15 / 4.1.0 API 16
- 在SD卡300MiB
- 在分辨率1280 * 800(手动设置 - 而不是内置的)
- 在设备的RAM大小为1024MB(与MB加入到数字)
- 抽象LCD 160
下面我的平板电脑配置为4.1.0 API 16
C:\用户\&lt;使用者&GT; \机器人\ AVD \&LT; AVD-配置文件名称&gt; .avd \ config.ini文件
Here my tablet config for 4.1.0 API 16
C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini
hw.lcd.density=160
sdcard.size=300M
skin.path=1280x800
skin.name=1280x800
hw.cpu.arch=arm
abi.type=armeabi-v7a
hw.cpu.model=cortex-a8
vm.heapSize=48
hw.ramSize=1024MB
image.sysdir.1=system-images\android-16\armeabi-v7a\
此配置显示了软件密钥太
This config shows the software keys too
这篇关于Android模拟器无法分配内存8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!