Emulator Not Running on Android Studio

2019-02-06 02:48发布

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?

4条回答
Fickle 薄情
2楼-- · 2019-02-06 03:29

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.

查看更多
叼着烟拽天下
3楼-- · 2019-02-06 03:32

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.

查看更多
▲ chillily
4楼-- · 2019-02-06 03:38

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.

查看更多
The star\"
5楼-- · 2019-02-06 03:49

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!

查看更多
登录 后发表回答