当我尝试从 Eclipse 运行 WXGA800 模拟器时,出现如下错误
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.
我还检查了以下链接
分配内存失败:8 https://stackoverflow.com/questions/7222906/failed-to-allocate-memory-8
Android:分配内存失败 https://stackoverflow.com/questions/5969067
我已经尝试减少模拟器中的 RAM 大小并增加 Java 堆大小和 ram 大小,但仍然面临相同的错误。
Update:从Android SDK Manager版本21开始,解决方案是编辑C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini
并改变值
hw.ramSize=1024
to
hw.ramSize=1024MB
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 http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/, Configuration http://www.developer.com/ws/android/development-tools/haxm-speeds-up-the-android-emulator.html)
早期的 Android SDK Manager 版本:
内置WXGA800皮肤也有同样的问题。我通过将虚拟设备设置编辑为:
- 目标 4.0.3 API 15 / 4.1.0 API 16
- SD 卡 300MiB
- 分辨率 1280 x 800(手动设置 - 非内置分辨率)
- 设备 RAM 大小 1024MB(MB 添加到数字中)
- 抽象 LCD 160
这是我的 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)