How to change the android emulator RAM size from the command line?

前端 未结 3 1370
感动是毒
感动是毒 2020-12-06 02:25

I want to edit or change the ram size while creating the android emulator from command line.

EX: While creating the emulator it\'s taking default ram size(Android S

3条回答
  •  独厮守ぢ
    2020-12-06 02:53

    You can change the default value of hw.ramSize in hardware.ini which you uses. For example, if you change the platforms/android-15/skins/**WVGA800**/hardware.ini to

    hw.lcd.density=240
    vm.heapSize=48
    hw.ramSize=1024
    

    Then you can create an avd that has 1024M of ram by using:

    android create avd -f -t  -s **WVGA800** -n test_avd
    

提交回复
热议问题