You need to reduce the RAM of your emulator. Even if you have enough memory, it is recommended that you have 1 GB or less than 1 GB of memory. Since it automatically allocates 864MB, edit your emulator in the AVD manager and reduce the AVD RAM.
Open AVD Manager and select your device and click the "Change" button.
Then, in “Memory Settings”, find the RAM parameter and, for example, set it to 512 or 864. Click “OK” to save the current configuration and restart the application or AVD.
You should also not specify the RAM size for your emulator that exceeds the HAXM memory you allocated. Since you run the emulator in HAXM mode, it will run faster than usual. Therefore, you do not need to worry about the RAM of your device.
user5248371
source share