当我尝试从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.我还查看了以下链接
Android: failed to allocate memory
我尝试在模拟器中减小RAM大小,增加Java heapsize和ramsize,但我仍然面临相同的错误。
发布于 2012-12-06 03:29:45
下面的解决方案对我很有效。在以下配置文件中:
C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini替换
hw.ramSize=1024通过
hw.ramSize=1024MB发布于 2013-01-11 20:18:19
在我的例子中,解决方案是将特定皮肤的config.ini和hardware.ini从hw.ramSize=1024更改为hw.ramSize=1024MB。
要查找hardware.ini文件:
where to >打开skin.path.
android-sdk\platforms\android-15\skins\WXGA720.
hw.ramSize=1024MB.的
config.ini发布于 2014-02-17 13:09:54
更新:从Android SDK Manager版本21开始,解决方案是编辑C:\Users.android\avd.avd\config.ini并更改其值
hw.ramSize=1024 to
hw.ramSize=1024MB
或
hw.ramSize=512MB
https://stackoverflow.com/questions/11667907
复制相似问题