Sometime when use the Android emulator post recent version update or usually, it throws the error ‘The Emulator process for AVD has terminated’.
Main reason for The Emulator process for AVD has terminated error is the low disk space into your system.
To fix ‘The Emulator process for AVD has terminated’ error, delete some unnecessary files from your system to clear the low disk space into Disk C, stop and restart the android emulator again, it would fix the issue.
Whenever any issue is encountered into Android emulator, logs are generated into log directory named as ‘idea.log’.
So to know the exact issue for The Emulator process for AVD has terminated error, first of all go to the log directory ‘idea.log’ which resides into path ~/Library/Logs/Google/AndroidStudio<version> in your system.
idea.log log directory can be accessed as:
For Windows: ~/Library/Logs/Google/AndroidStudio<version>
Where <version> is the android studio version you are using into your system, replace the value with current version and access the idea.log file.
For MAC users: ‘idea.log’ log directory is accessible as /Users/<user>/Library/Logs/AndroidStudio/idea.log
or click Help -> Show Log in Finder and it would show you the path into MAC for idea.log directory.
By analysing the idea.log log directory, you would be able to see the exact reason for ‘The Emulator process for AVD has terminated’ error.
For me, reason was lower disk space into my local system.
To fix The Emulator process for AVD has terminated error, delete some unnecessary files from your system to clear the lower disk space, stop and restart the emulator again, it would run successfully.
Once the local C disk space has been cleared, now you can try to re-install and install the Android Emulator again.
Go to Tools -> SDK Manager -> SDK Tools -> untick the ‘Android Emulator’ and click Apply. It would un-install the android emulator.
To install Android Emulator:
Go to Tools -> SDK Manager -> SDK Tools -> tick the ‘Android Emulator’ and click Apply. Now, Android emulator will get install back.
Once Android emulator is installed back, restart the android studio, create the emulator device and run it again.
Now android emulator should start working successfully and error The Emulator process for AVD has terminated would be fixed.
If still issue persists, you need to make changes into vCPU, memory and disk space configuration for android studio.
To change vCPU, memory and disk space configuration:
Go to AVD Manager -> ‘Edit Virtual Device’ -> Advance Settings -> Emulated Performance -> change Graphics value and RAM values into Memory and storage option.
You can give a try to update your system display drivers if using any extended monitor or screen, might be graphics or display driver is creating the issue ‘The Emulator process for AVD has terminated’ for you.
Update the driver, restart your system and re-run the Android emulator to fix the issue, The Emulator process for AVD has terminated.