Reputation: 6668
I keep seeing the error message below in andriod studio. I am aware there are already posts that deal with this error. They specify that I go to the location C:\Users\XXXX.android\avd\ and delete the folder Pixel_API_25.avd and Pixel_API_25.ini. However I cannot delete these files as it says they are currently in use. I can't see where though?
The selected AVD is currently running in the Emulator. Please exit the emulator instance and try deleting again.
Upvotes: 5
Views: 18032
Reputation: 1
In Windows
To delete the AVD pixel_3a_api_29
, you can follow the below steps:
C:\\Users\\xxxxx\\.android\\avd\\Pixel_3a_API_29
.hardware-qemu.ini.lock
.If you are unable to delete the files due to them being in use, try deleting all .lock
files under .android
directory ¹.
Still If you are unable to delete the files or folder
This error message usually occurs when the file is being used by another program. Here's what you can try:
adb.exe
, emulator.exe
, and qemu-system-x86_64.exe
.C:\\Users\\xxxxx\\.android\\avd\\Pixel_3a_API_29
.hardware-qemu.ini.lock
.If you are still unable to delete the file, try deleting all .lock
files under .android
directory ¹.
I hope this helps!
Upvotes: 0
Reputation: 11
For Linux:
Upvotes: 1
Reputation: 11
On Windows you can stop the AVD by ending the "qemu-system-x86_64.exe" process in the task-manager. After that you should be able to delete the files.
Upvotes: 1
Reputation: 51
For Windows
C://Users/nameOfYourSystem/.android/.avd
For MacOS
YOUR_USERNAME/.android/avd
Upvotes: 5
Reputation: 71
AVD Pixel_3a_API_29 is already running. If that is not the case, delete the files at
Upvotes: 7
Reputation: 2171
Same as @Kalai answer for MacOS
open YOUR_USERNAME/.android/avd
Upvotes: 1