Issue
I'm creating an Android emulator with API level 27 and Android Studio always starts it with ~1.5gb of ram completely ignoring the amount of ram I specify in Configure Hardware Profile. I've tried setting ram 128, 256, 512, 1024 MB but the emulator always has ~1.5GB of ram when I check with:
$ adb shell dumpsys meminfo
...
Total RAM: 1,530,604K (status normal)
...
AVD shows the correct (what I specified) amount of ram (hw.ramSize) when I check the details of the emulator.
Why is the emulator ignoring my specified ram amount when I launch it?
Solution
Android emulator (version 30.0.5 as of writing) appears to ignore hw.ramSize
item in config.ini
or the -memory
option in the emulator command line. I managed to adjust the memory size of AVDs at the qemu level. The command I use is:
/opt/android-sdk/emulator/emulator @avdName -qemu -m 1204
Answered By - Chih-Hsuan Yen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.