Android studio emulator fails to start with memory limit related error message

前端 未结 8 1629
星月不相逢
星月不相逢 2020-12-09 09:45

I\'m trying to run my first android studio project but I get this error message and the emulator doesn\'t start :

Created filesystem with 11/4224 inodes and          


        
相关标签:
8条回答
  • 2020-12-09 10:07

    After Android Studio is installed

    In CMD (Run As Admin) execute this command (Emulator should be closed):

    //if it's installed on D:, at first, "cd" to that drive, like  "D:"
    cd "%ANDROID_SDK_HOME%\sdk\extras\intel\Hardware_Accelerated_Execution_Manager"
    silent_install.bat -m 1024
    

    this will set HAXM memory to 1024Mb (max 1800). Set RAM parameter in VDM slightly below this value, like 980

    If you are using Mac OS then use navigate to path /<USER_DIR>/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager and execute sudo ./silent_install.sh -m 1024

    0 讨论(0)
  • 2020-12-09 10:08

    If you are using Android studio and facing problem with emulator Ram size then follow the step:

    Go to Tools -> Android -> AVD Manager -> (select you device ) -> Edit device -> Show advanced setting -> New Device -> Choose Change button -> New Hardware profile -> Change the Memory size to 512M -> Edit device in the right bottom corner then -> finish.

    0 讨论(0)
提交回复
热议问题