5

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.
mHelpMe
  • 6,336
  • 24
  • 75
  • 150
  • You can try to delete all .lock under .android. [Like this answer](https://stackoverflow.com/a/27006483/6447158) – Bea Sep 26 '17 at 19:29

5 Answers5

7

AVD Pixel_3a_API_29 is already running. If that is not the case, delete the files at

  • In my case
  • Go to C:\Users\xxxxx(system name)\.android\avd\Pixel_3a_API_29(emulator name folder)
  • Delete folder hardware-qemu.ini.lock
  • Go to Android Studio -> AVD Manager -> Relaunch emulator
vaibhav gupta
  • 71
  • 1
  • 2
5

For Windows

  • Go to FileManager.
  • Go to C://Users/nameOfYourSystem/.android/.avd
  • delete corresponding (selected AVD) configuration setting file.
  • Go to Android Studio -> AVD Manager. Your AVD should not listed here

For MacOS

  • Open YOUR_USERNAME/.android/avd
  • Delete the corresponding configuration setting file.
Thibault Walterspieler
  • 2,272
  • 2
  • 15
  • 25
Kalai
  • 51
  • 3
1

Same as @Kalai answer for MacOS

  • In your terminal: open YOUR_USERNAME/.android/avd
  • Delete corresponding configuration setting File.
Matt Walterspieler
  • 2,073
  • 2
  • 21
  • 34
0

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.

qwertz
  • 1
0

For Linux:

  • Go to: YOUR_USERNAME/.android/avd/NAME_OF_EMULATED_DEVICE (to show .hidefiles just press CTRL+H)
  • Delete all files with .lock extension
  • Relaunch emulator in Android Studio
ifrit
  • 1