Windows 7 64bit android AVD start error:Failed to allocate memory: 8

我的梦境 提交于 2019-12-03 05:47:55

This seems to be a problem with SDK Tools r20, in which the amount of RAM can not be set from the AVD Manager for the WXGAxxx skins (and the default 1024 MB is too much for the 32 bit emulator).

Workaround

You can work around the issue by starting the AVD from the command line, and hard set the amount of memory to something lower:

> cd c:\program (x86)\android\android-sdk\tools\
> emulator @android4.1 -memory 896

The above command line will set the amount of memory to 896 MB for the AVD. This bug can be followed here: http://code.google.com/p/android/issues/detail?id=36080

Modify config.ini file like that:

hw.ramSize=1024 --> hw.ramSize=1024M

and it should work like charm...

Ref: http://www.fantageek.com/102/strange-avd-with-hw-ramsize/

Are you running the emulator on your Laptop?

This problem also occurs if the Emulator's Screen Resolution is greater than that of your Display. For example WXGA-xxx (1280x800) could crash if your screen resolution is (1366x768).

Try using WSVGA. Does a good job as a Tablet.

WhutMao

Degrading SDK Tools from r20 to r18 will solve the problem. You need to do this by Uninstall ing r20 and reinstalling installer_r18-windows.ex.

try to update the ADT&SDK .

if that doesn't help , try to do total uninstallation of the ADT&SDK of android . even delete the ".android" folder , and in the end install them again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!