繁体   English   中英

Android Studio无法运行AVD

[英]Android Studio Unable to run AVD

我收到以下错误:

模拟器:错误:不幸的是,HAXM管理程序和VirtualBox 4.3.30+之间存在不兼容性,它不允许多个虚拟机管理程序共存。 它正在积极努力; 您可以在http://b.android.com/197915(Android )和https://www.virtualbox.org/ticket/14294(VirtualBox )找到有关该问题的更多信息内部错误:初始hax同步失败

虽然它说工作正在进行中,但我可以使用相同的操作系统(WIN 7)以及相同的机器规格在我的同事的机器上运行工作室。

目前是否有解决此问题的工作?

我收到了以下错误:

错误:不幸的是,HAXM管理程序和VirtualBox 4.3.30+之间存在不兼容性,它不允许多个虚拟机管理程序共存。 它正在积极努力; 您可以在http://b.android.com/197915(Android )和https://www.virtualbox.org/ticket/14294(VirtualBox )上找到有关该问题的更多信息

要解决这个问题,我只需关闭Mac上的Docker。

我有同样的问题。 在研究时我发现了这个https://forums.docker.com/t/cant-using-docker-for-mac-with-android-emulator-haxm/8939/3

显然,使用HAXM的Docker和Android模拟器无法一起运行。 我在我的系统中运行了Docker。 我停止了它,模拟器能够毫无问题地运行。

如果已安装并运行Docker,请将其停止并重试。

我试图用ionic emulate android -lcs在Android模拟器上模拟一个Ionic 1应用程序并遇到同样的错误: 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 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

我通过以下步骤保存并暂停所有其他正在运行的VM的执行来解决它:

1)单击顶部栏中的鲸鱼图标并选择“退出Docker”,退出Docker for Mac。 我相信这是必需的,因为当Docker Client运行时,Docker for Mac和Docker Toolbox的Docker守护进程(服务器)会自动在Linux VM中运行(您不需要也无法使用dockerddockerd docker daemon手动运行它)。 当鲸鱼图标位于顶部栏中时,Docker客户端正在运行。

2)通过运行vagrant halt在主机上运行的所有Vagrant VM,因为它们可能使用Virtual Box作为提供程序。 通过运行vagrant status检查其状态更改为“已关闭”。

3)通过运行virtualbox打开Virtual Box GUI停止所有Virtual Box虚拟机,然后右键单击任何虚拟机并选择关闭>保存状态

4)关闭并重新打开终端窗口,然后重试

我只是停止在Mac上运行Docker。 然后模拟器能够正常运行。

您可能有两个模拟器试图在计算机上使用相同的资源,即Google one和Genymotion(VirtualBox)。 谁知道有多长时间/是否会解决这个问题。 如果您正在运行Genymotion,则使用VirtualBox。 因此,尝试运行Oracle VM Virtual Box Manager并检查没有虚拟机正在运行并关闭任何虚拟机。 您应该能够再次在工作室中运行模拟器,只需确保选择一个(Genymotion)或另一个(Android AVD管理器)。

Mehmed发现线程有一个更新没有必要停止Docker。 如果您已运行所有Android Studio更新,则已在Users / your_user / Library / Android / sdk / extras / intel / Hardware_Accelerated_Execution_Manager / IntelHAXM_6.1.1.dmg下载了英特尔安装程序。 您需要自己运行安装程序。

我有类似的问题,我做了以下事情:

1)停止Docker for mac(退出)2)我使用2个显示器(一个Mac屏幕+扩展另一个屏幕),我断开第二个显示器,它工作正常。

在我的情况下(macOS),停止/退出docker没有帮助。 我需要运行boot2docker poweroff

确认您没有多个虚拟机同时运行。

对于Windows用户:

  1. 关闭所有打开的模拟器。
  2. 打开任务管理器。
  3. 结束进程: adb.exe的所有实例。
  4. 结束过程:描述中包含Virtual BoxVBox ...的所有过程。
  5. 重启模拟器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM