"WARNING: Increasing RAM size to 1GB" and "Cannot set up guest memory 'xxx.ram': Invalid argument".

来源:互联网 发布:无锡汽车模具编程招聘 编辑:程序博客网 时间:2024/06/05 10:54
参考文文章:
http://stackoverflow.com/questions/32901130/android-studio-avd-ram-size-not-changing
http://stackoverflow.com/questions/32883785/why-does-android-emulator-increase-the-ram-size-automatically-and-make-me-fail-t

我的系统:WIN7 X64

今天在启动AVD时出现如下错误:
"WARNING: Increasing RAM size to 1GB" and "Cannot set up guest memory 'xxx.ram': Invalid argument". 


看下老外是如何解决的:
I download and install Android sdk for API level 19 from SDK manager(SDK Platforms,SDK Tools). 
Then deleted my existing emulator device(api 23) and after downloading system image for i.e. 
kitkat (api 19) that takes lower memory create a new AVD.
Then Running this one solved the error "Cannot set up guest memory 'pc.ram': Invalid argument". It runs smoothly in my win7

You can downgrade the Intel x86 Atom System Image to API-19 instead of API 21/22/23 so as to use less RAM space. 
You can find the config in the config.ini file, and set the RAM size to 512 by hw.ramSize=512.
I had tried Image with API-21/22/23. Even I had set ramSize=256 in config.ini, 
or add option to change the memory size, after the command: emulator -memory 256 -avd [<avd_name>], 
it still shows: emulator: WARNING: Increasing RAM size to 1GB


意思很明显了,就是下载19版本的虚拟手机系统镜像,然后用其来创建android虚拟机即可,如下图所示:










0 0