36
votes

The emulators stopped running. Configuration: Windows 10, Intel, HAXM Installed, Virtualization ON, GPU software, emulators reinstalled. Immediately after turning on, this error falls (The emulator process for AVD was killed), the emulator does not even appear

enter image description here

26

26 Answers

44
votes

One of the solution is:

Select "Tools" -> "SDK Manager" -> "SDK Tools" tab -> and update to latest Android Emulator version.

enter image description here

15
votes

None of the solutions worked for me. Here are the generic steps to help you find the problem:

  1. Try to find emulator folder in sdk folder, in my case it is C:\Users\USERNAME\AppData\Local\Android\Sdk\emulator
  2. Open terminal in this folder and call emulator -list-avds and see names of emulators, in my case it is Pixel_2_API_30
  3. Next step try to call this emulator with command emulator -avd Pixel_2_API_30
  4. Your emulator will start or show an error. In my case I sow this enter image description here
  1. I needed to install the missing dll. I go to link https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0 and install Visual Studio 2015, 2017 and 2019 and now all ok!!!

Warning: Of course, in your case, you may have another error - but you can easily find a solution on the Internet knowing the reason

11
votes

Make sure your machine has enough storage space, sometimes AVD requires up to 10GB or more to start.

9
votes

Uncheck "Launch in a tool window" from File-> Settings -> emulator Should work.

8
votes

To debug the exact cause of this issue, On the tabs section of android studio,

click 'Help',

then 'Show log in explorer'.

After opening the file, if you see any message like

'Emulator: cannot add library vulkan-1.dll: failed Emulator: cannot add library vulkan-1.dll: failed ',

Then follow these four steps

1.Download the vulkan.dll file from the internet(Google search for these and you would see sources to download from) or get from any other source.

2.Extract the dll file

  1. Place it in c\Users[your username]\AppData\Local\Android\Sdk\emulator\lib64.

4.Then rename the file to 'vulkan-1.dll'

Then run your emulator and see it come up

8
votes

I have same problem as you. Now I resolved it by these steps.

  • Open SDK Manager, select "SDK Tools" Tab
  • Uncheck box "Intel x86 Emulator Accelerator (HAXM installer)" then "OK"
  • Open AVD Manager, try to start emulator and then let it to install HAXM
  • Finally, Emulator can be started. I think so HAXM Version is update (old is 7.5.1 and new is 7.5.6).
7
votes

I want to make a contribution to this thread, I have tried many of the possible solutions that I have found on the net, including the one that is now marked as Solution and I have not managed to solve the problem until I have modified the SDK path to match the ones System variables

enter image description here enter image description here

6
votes

I had same issue.

I changed ANDROID_HOME path on environment variables.

And then I copied 'avd' folder, which emulator installed in into 'sdk' folder(ANDROID_HOME path).

*** You can find 'avd' folder by clicking 'Show on Disk' in AVD manger.

I restarted the emulator and then it is running well now.

4
votes

Same issue here, resolved it by uninstalling all the unused SDKs to free some disk space

=> uncheck them in SDK Manager then Apply, and Finish when the uninstallation process is done, finally restart your Android Studio, it should be ok

Check all the solutions proposed in this answer : https://stackoverflow.com/a/64469129/14517970

4
votes

For me, it happened to be that my machine was out of disk space. However, I was able to verify this by running the emulator from the command line in order to get a more detailed error message:

$ emulator -list-avds
Pixel_3_API_29
Pixel_3_API_30
Pixel_5_API_30_R_

$ emulator -avd Pixel_3_API_29
emulator: Android emulator version 30.4.1.0 (build_id 7075546) (CL:N/A)
emulator: ERROR: Not enough disk space to run AVD 'Pixel_3_API_29'. Exiting...

Freeing disk space worked. Note, a great way to free up lots of space is to open Android Virtual Device Manager and select wipe data. For me, this cleared 8 GB just with one emulator that I hadn't used in a long while and was fine to reset.

enter image description here

2
votes

If updating doesn't work for you try opening the emulator with command line for ubuntu

locate emulator location in Terminal (cd Home/Android/Sdk/emulator).

run this command emulator -avd EMULATOR_NAME

this will open the emulator or will tell the actual error that you can fix. in my case the problem was my system has low space left than the required for emulator (6GB < 8GB)

1
votes

There are many reasons why the emulator process can quit. This dialog unfortunately provides this misleading message with no further details.

If you have Android SDK Command-line Tools installed, run emulator from the command line to see what's happening.

emulator -list-avds   # get available AVD names
emulator @<avd-name>  # try to start emulator

Error messages will follow. In my case it was insufficient disk space.

1
votes

Same issue occurred with me multiple time. Try following points hope it help you.

  1. File-> invalidate Cache/ Restart.
  2. File-> Settings -> Tools -> Emulator -> Now uncheck(Launch in a tool window)
  3. AVD Manager -> more option -> show on disk -> Now delete(hardware-qemu.ini.lock) and run again.
1
votes

I know this is for windows but I share my solution in case anyone with Ubuntu is here.

What happened:

When I tried to open my emulator for the first time I faced this error.

Solution:

1
votes

You have to check that Android Emulator is properly installed or not. If there an update available for emulator then it should be updated.

enter image description here

1
votes

I had the same problem, then I tried multiple things to fix that but no luck, then I chose a different system image and now it works.

currently, I have (PIE android 9.0) enter image description here

0
votes

If you just created the emulator and it has never been run before, you need to run it as a stand-alone window for the first time, then you can run it in a tool window (in the Android studio window). To run the emulator as standalone app:

  • In the android studio settings go to tools>Emulator and make sure that "Launch in a tool window" is disabled before running the project.
  • Or close the project and start the emulator
  • Or run this command line emulator -avd {your virtual device name here} more info
0
votes

I had this error too. The issue was my 'avd' folder creating the image and 'avd' folder when trying to launch the android emulator were pointing to two different places.

The solution:

step 1: create an environment variable to redirect both paths back to the same place enter image description here

step 2: restart Android studio

0
votes

If nothing else works, what solved it for me was:

Tools > SDK Manager > Reinstall Android emulator and HAXM

0
votes

If the emulator was already working and you get into this error, then the emulator executable crashed, but the process is still running.

Find these processes with your process explorer and kill them. They should look similar like

  • emulator.exe
  • qemu-system-x86_64.exe

Process Explorer Screenshot

Afterwards go to your AVD directory where your device is located and delete multiinstance.lock file. Restart Android Studio, and launch the device in the AVD manager.

0
votes

If you are using a 7th Generation Intel® Core™ i7 processor, there is a reported bug with Intel HAXM. The only way that I manage to run the emulator is on the command-line by turning off hardware acceleration and the AVD was very slow. Here is how:

To get the list of installed AVDs (assuming your default emulator path is as follows)

%USERPROFILE%\AppData\Local\Android\Sdk\emulator\emulator.exe -list-avds

Start an AVD (Nexus_5X_API_25 of example) with hardware acceleration off

%USERPROFILE%\AppData\Local\Android\Sdk\emulator\emulator.exe -avd Nexus_5X_API_25 -accel off

You can add the -verbose -show-kernel options to get detailed info.

0
votes

None of the above answers worked for me. This did:

I followed the steps mentioned in this comment, but it didn't show any errors. It also said to "Update emulator because it's outdated", although my emulator was already up-to-date. I restarted Studio & ran the AVD from AVD manager and it worked.

0
votes

I faced the same issue on my fresh installed Linux Mint with Nvidia GPU. The problem was solved after the GPU driver installed.

Go to "Driver Manager" to see if there is driver available.

0
votes

It's hard to come to read on my solution which is after 25 Answers. Still I suggest this solution which helped me as non others helped:

  1. Use command in cmd: cd C:<SDK-Path>\Android\Sdk\emulator>emulator -list-avds
  2. List all emulator using: emulator -list-avds
  3. Run emulator using: emulator @Your-Emulator-Name
  4. This will show you error on why emulator is not able to launch.
  5. For me it was: handleCpuAcceleration: feature check for hvf cannot add library vulkan-1.dll: failed
  6. Downlaod vulkan-1.dll file by googling
  7. Place this file in c:\Windows\System32
  8. Launch Emulator again Viola!!! :)
0
votes

Just make sure you have enough disk space on your machine, I freed up space and didn't have to do any of the steps mentioned above.

-3
votes

Mine was caused by lack of space on my primary Hard Drive on my PC. Once I had at least 4 GB the error cleared.