问题
I am trying to run an emulator over Android Studio, but it's not starting.
I have Android studio (version 23 marshmallow), configured with
minSdkVersion 21
targetSdkVersion 23
When I run my app in emulation (nexus 5x api 23 android 6.0), I get the following error:
Error while waiting for device: The emulator process for AVD Nexus_5X_API_23 was killed.
Can anybody help me on this, please?
回答1:
If you take a look at the 4: Run
log, it says:
emulator: ERROR: Unfortunately, there's an incompatibility between HAXM hypervisor and VirtualBox 4.3.30+ which doesn't allow multiple hypervisors to co-exist. It is being actively worked on; you can find out more about the issue at http://b.android.com/197915 (Android) and https://www.virtualbox.org/ticket/14294 (VirtualBox)
In my case, there was a VirtualBox docker instance running and once I stopped it, the emulator started to work.
回答2:
In my case docker / dlite was running and once I stopped them, the emulator started to work.
docker stop $(docker ps -a -q)
dlite stop
Or quit docker for mac via the top right menu bar item.
Note that you might need to restart Android Studio.
回答3:
If your running Windows OS, then check whether the graphics driver is installed and is working fine. As the emulator needs good and/or proper graphics configuration. Try installing the graphics driver if not installed and running the emulator again.
Hope this works!, this worked for me.
回答4:
My problem was with Nexus 6 23 and resolved it doing the following:
- cd $HOME/Android/Sdk/emulator/lib64/libstdc++
- Rename the file libstdc++.so.6 (Ubuntu): mv libstdc++.so.6 libstdc++.so.6.bak
- Ready, it worked for me!
I hope it can help you!
来源:https://stackoverflow.com/questions/37281365/emulator-not-running-on-android-studio