How to reduce the memory used by the android emula

2020-07-18 05:00发布

Is there a way to reduce memory used by android emulator? When I turn on Resource Monitor, It commits over 800MB(I guess this is the reason for all my computer's lags)!

My info:

OS: Window 7, 2GB RAM, CPU core i3.

Emulator: Device RAM size: 512MB, data partition size: 384MB, Skin: HVGA 480x320, SD Card: 4GiB.

2条回答
做自己的国王
2楼-- · 2020-07-18 05:15

One solution is to reduce the Device RAM to maybe 384 MB or 256 MB, as long as you keep the VM RAM size the same it should not affect how your app run in the emulator (except maybe making the emulator run even slower)

But if you want to do software development, 4GB RAM should be the minimum, RAMs are very cheap right now and you really should sharper your tools anyway.

查看更多
▲ chillily
3楼-- · 2020-07-18 05:24

Try this:

Open the Android Virtual device manager:

enter image description here

Click on a device and select edit:

enter image description here

and then on Hardware click new:

enter image description here

After that select the option Device ram size:

enter image description here

Then just put the value that you want and click on Edit AVD:

enter image description here

Hope that helps. Also as you may notice you can change other properties that might be useful.

查看更多
登录 后发表回答