The Android Virtual Device is currently running in an emulator and cannot be deleted


I recently got this error message when I tried to delete an Android Virtual Device (AVD) that I had created.

The Android Virtual Device is currently running in an emulator and cannot be deleted.png
The Android Virtual Device is currently running in an emulator and cannot be deleted.png

Solutions :

For Mac OS X :

If you work on a Mac OS X device, go to Activity Monitor App and look for ADB process that is running and terminate the process (if not then do a force close). Once done try deleting the AVD from AVD Manager.

For Mac Windows :

Do a Ctrl+Alt+Del to open up task manager and look for AVD process that is being run and close it. Once done try deleting the AVD from AVD Manager.

Quit adb process running on mac osx acivity manager
Quit adb process running on mac osx acivity manager