'The emulator process for avd has terminated(Android Studio) [closed]
Solution 1:[1]
The main root cause of that issue is lack of free space on your disk
Solution 2:[2]
I got exactly the same issue when I shut down the emulator while the process is still running in command line. It is caused by the multi instance lock. You can try the following:
- Open AVD manager and find the emulator you are using, open the drop down options and click "open on disk", it will open
...\Pixel_X_API_xx.avd
- Delete the file called
multiinstance.lock
, you may be asked to kill a process which names like qemuXXX, do that in your Task Manager. - Reopen the emulator, if still not working, delete any file related to "lock" in the folder.
- If still not working, uninstall the emulator and install it again.
This is one of the most ANNOYING issues of Android Studio. I cannot understand why they haven't solved it so far.
Solution 3:[3]
The emulator tends to leave zombie processes lying around when it is terminated, particularly if the device it was running wasn't powered down by pressing the power button.
Look for processes with qemu or emulator in their names and kill them. You may need kill -9 on Linux. This will delete the lock files and enable the emulator to restart.
Also look at the answers to
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | GoldBerg |
Solution 2 | Xueshen Liu |
Solution 3 | Richard Parkins |