ERROR Android emulator gets killed

2019-06-18 15:47发布

问题:

After updating to Android Studio 2 when I try to run my application and choose an emulator, I wait for the emulator to start and it suddenly gets killed. I can see emulator process for some minutes but never the gui. In Android studio I get the error

android studio Error while waiting for device: The emulator process for AVD was killed

This happens even if I run the emulator outside Android Studio. I have tried with both aa Android 6 and Android 4.4 based emulator. Running on a Windows 7 x64 PC. Similar post to another stackoverflow post which was closed. I have tried various ram, vm heap and resolution settings.

回答1:

For me it seems it was a problem that OpenGL didn't work on my Windows 10 machine. I fixed it as follows:

  1. Go to: Tools > Android > AVD Manager
  2. Press the "edit" (pencil) icon next to your AVD
  3. Change "Graphics" to "Software".


回答2:

Install the Intel x86 Emulator Accelerator worked for me.



回答3:

Just restarting the pc and studio solved my problem!



回答4:

I think this is problem of Android studio 2 Update or Problem to solve please Update also Android sdk version also then work properly.



回答5:

Update your Android SDK via Android SDK Managager. It will probably work fine!



回答6:

goto tools>android>sdkmanager and update emulator and install related API level.It worked for me



回答7:

I also had problem like this.. and how i fixed that:

  • 1. I choosed one of the older version for Android VDM(System image) - first,I used a version 28(Oreo i this it was) after that I switched to older one , to 25(Nougat)..

  • 2. I just change "Graphics" to "Software".



回答8:

If your HAMX is installed and turning to Software didn't help try to check if virtualization is enabled in BIOS. You need to go to BIOS and enable it



回答9:

  • Go to: Tools > Android > AVD Manager and Press the "edit" (pencil) icon next to your AVD , Change "Graphics" to "Software".
  • work on my Windows 10 machine and ubuntu 18.04