android studio 模拟器 for mac,mac下androidStudio 运行模拟器出现:

最近在我的mac电脑上启动android虚拟机之后,会被自动关闭

查看了AndroidStudio上的日志,报如下错误:

Failed to sync vcpu reg

Failed to sync vcpu reg

Failed to sync vcpu reg

Internal error: initial hax sync failed

解决方法,关掉电脑上运行的虚拟机,包括VM Ware 以及 Docker之类的服务

到此,问题得到解决

I was trying to emulate an Ionic 1 app on an Android emulator with ionic emulate android -lcsand 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 regFailed to sync vcpu regFailed to sync vcpu regInternal 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值