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?
If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.
After you have created an Android Virtual Device (AVD), you can start the Android Emulator and run an app in your project: In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With