安卓 - 分配内存失败

4

尝试启动模拟器时,我遇到了以下错误:

[2011-10-21 16:25:02 - Emulator] Failed to allocate memory: 8
[2011-10-21 16:25:02 - Emulator] 
[2011-10-21 16:25:02 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2011-10-21 16:25:02 - Emulator] Please contact the application's support team for more information.

模拟器设置

我尝试调整启动设置,但没有成功:

启动设置

4.0模拟器可以正常运行。 在Windows XP上运行。


1
设备RAM大小:1024。尝试使用较小的值了吗? - fredley
我应该在那里放入什么值? - Yoav
2个回答

17

将设备 RAM 大小设置为 512 可以解决此问题。


1
但是,当我有6 GB的可用内存时,为什么会出现这个错误呢? - kpsfoo

1
这是因为在AVD的运行时进行内存分配,要么减少特定AVD的RAM,要么增加操作系统的RAM,以便模拟器可以在其运行时分配所需的内存量。希望能对大家有所帮助 :)

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接