You can adjust your memory settings used by the android studio as well as the emulators using the settings provided below.
Adjust your memory settings as per your requirements.