Android Studio Unable to run AVD

試著忘記壹切 提交于 2019-11-28 16:37:44

问题


I am getting below error:

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) Internal error: initial hax sync failed

While it say work is under going, I can run studio on my collegue's machine with same OS(WIN 7), and same machine specs.

Is there a work around this issue currently ?


回答1:


I received the follow error:

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)

To solve this problem I only needed to close Docker on Mac.




回答2:


I had the same problem. While researching I found out about this https://forums.docker.com/t/cant-using-docker-for-mac-with-android-emulator-haxm/8939/3

Apparently, Docker and Android emulators using HAXM cannot run together. I had Docker running in my system. I stopped it and the emulator was able to run without a problem.

If you have Docker installed and running, stop it and try again.




回答3:


I was trying to emulate an Ionic 1 app on an Android emulator with ionic emulate android -lcs and encountered the same error: 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) Failed to sync vcpu reg Failed to sync vcpu reg Failed to sync vcpu reg Internal error: initial hax sync failed

I solved it by saving and suspending execution of all other running VMs with the following steps:

1) Quit Docker for Mac by clicking the whale icon in the top bar and selecting "Quit Docker". I believe this is required because the Docker Daemon (server) of Docker for Mac and Docker Toolbox automatically runs in a Linux VM when the Docker Client is running (you do not need to and cannot run it manually with dockerd or docker daemon). The Docker Client is running when the whale icon is in the top bar.

2) Stop all Vagrant VMs running on the host machine by running vagrant halt, as they may be using Virtual Box as the provider. Check their state changes to Powered Off by running vagrant status.

3) Stop all Virtual Box VMs by running virtualbox to open Virtual Box GUI and then Right-click any VMs and select Close > Save State

4) Close and re-open your Terminal window before retrying




回答4:


I simply stopped running Docker on Mac. The emulator then was able to run properly.




回答5:


You likely have two emulators that are trying to use the same resources on the computer i.e. both the Google one and the Genymotion (VirtualBox) one. Who knows how long/if that will be addressed. If you are running Genymotion you use VirtualBox. So, try to run the Oracle VM Virtual Box Manager and check that no virtual machines are running and shut down any that are. You should be able to run emulators in studio again, just make sure you pick one (Genymotion) or the other (Android AVD manager).




回答6:


There was an update on the thread that Mehmed found It is not necessary to stop Docker. If you have run all the Android Studio updates, you have the Intel installer already downloaded at Users/your_user/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_6.1.1.dmg. You need to run the installer yourself.




回答7:


I had the similar problem and I did the following:

1) Stopped the Docker for mac (Quit) 2) I use 2 monitor (One Mac Screen + Extended another screen), I disconnected the second monitor and it works fine.




回答8:


In my case (macOS), stop/quit docker does not help. I need to run boot2docker poweroff.




回答9:


Verify that you don't have more that one Virtual Machine running at the same time.




回答10:


For Windows Users:

  1. Close all open emulators.
  2. Open Task Manager.
  3. End Process: All instances of adb.exe.
  4. End Process: All processes which has Virtual Box or VBox... in Description.
  5. Restart Emulator.


来源:https://stackoverflow.com/questions/37397810/android-studio-unable-to-run-avd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!