Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulator Not Running on Android Studio

Tags:

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?

like image 314
Amit Avatar asked May 17 '16 16:05

Amit


People also ask

Why is my emulator not working Android Studio?

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.

How do I open an emulator in Android Studio?

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.


2 Answers

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.

like image 127
Henrique de Sousa Avatar answered Oct 06 '22 22:10

Henrique de Sousa


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.

like image 34
Wojtek Dmyszewicz Avatar answered Oct 06 '22 23:10

Wojtek Dmyszewicz