Sometimes in Android Studio the AVD or Android Emulator does not terminate properly.
Upon next launch this annoying “device is already running” and a process ID warning will pop up.
This warning happens because there is a lock file (hardware-qemu.ini.lock) which once deleted will let you run the emulator again.
The path is the following:
$HOME/.var/app/com.google.AndroidStudio/config/.android/avd/Pixel_9.avd/hardware-qemu.ini.lock
Obviously replace the example’s device name in the path (Pixel_9.avd) with your own device’s name.
Leave a Reply