相关疑难解决方法(0)

Android:无法分配内存

我正在尝试用2047 mb ram创建一个模拟器.当我运行它时,我收到此错误:

[2011-02-22 14:24:14 - Emulator]
[2011-02-22 14:24:14 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2011-02-22 14:24:14 - Emulator] Please contact the application's support team for more information.
[2011-02-22 14:24:26 - Emulator] Failed to allocate memory: 8
Run Code Online (Sandbox Code Playgroud)

我知道降低数量会使它发挥作用.但是我宁愿拥有更多的ram,所以我可以测试我正在开发的游戏.我假设有更多的公羊,它会跑得更快......

有没有人在模拟器上获得2047 mb的ram?如果是这样,怎么样?你用了什么设置?你在电脑上有什么特别的改变吗?

使用Windows 7 64位,更新到最新的android sdk.我也有超过8GB的ram.我确实有一个设备(摩托罗拉里程碑)进行测试,但由于它是一个基于网络的游戏,我需要至少一个其他客户端(希望使用模拟器)除了我的手机运行.

android android-emulator

20
推荐指数
5
解决办法
7万
查看次数

为什么我不能用Eclipse的1024 MB RAM从Eclipse启动AVD?

因此,就像许多人用Eclipse开始Android开发一样,即使使用快速机器,我也注意到模拟器的运行速度令人沮丧.

我搜索SO以获得使其运行更快的任何提示,并且我遇到了这个问题,其最佳答案表明了一些事情,包括使AVD拥有更多RAM.他们建议1024MB:

在此输入图像描述

听起来不错.但是当我尝试启动它时,我得到了这个:

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.
Run Code Online (Sandbox Code Playgroud)

如果我将它设置为512MB(从默认的256MB开始),则启动正常.

但是,为什么在具有12GB物理RAM的Windows 7 x64机器上我不能为AVD分配1024MB?这是Eclipse的限制吗?模拟器限制?Java限制?我认为那个人在另一个问题上得到了它的工作,但我还没弄清楚我在其他地方看到的大多数反应如何说"是的,将它拨到512MB",这不是我正在寻找的答案.

eclipse android android-virtual-device android-emulator

8
推荐指数
2
解决办法
1万
查看次数