我的计算机上有一个 VirtualBox VM,该 VM 运行 Windows 7 64 位。我在该虚拟机上安装了 Android Studio。我只有基本的 Hello World 应用程序。当我尝试运行 AVD 时,我收到以下消息:
运行此 AVD 需要 Intel HAXM。安卓模拟器是
与 Hyper-V 不兼容。
不幸的是,您无法运行 Hyper-V 并使用模拟器。
这是你可以做的帽子:
1) 以管理员身份启动命令提示符
2) 运行以下命令:C:\Windows\system32> bcdedit /set
hypervisorlaunchtype off
3) 重新启动机器。
我尝试运行此命令并重新启动多次,但没有改变任何内容。
我还尝试做一些端口转发:http://paulsdevworld.blogspot.ca/2013/06/make-android-studio-work-with-androvm.html http://paulsdevworld.blogspot.ca/2013/06/make-android-studio-work-with-androvm.html我无法连接No connection could be made because the target machine actively refused it.
我已经检查过这个问题,我没有遇到同样的问题,因为OP直接在VirtualBox中有一个android图像从 Android studio 在 Virtual Box 上测试 Android 应用程序 https://stackoverflow.com/questions/28252296/test-android-app-on-virtual-box-from-android-studio
有人知道一种方法可以使这项工作或我可以尝试的事情吗?
如有任何问题,请随时提出。
EDIT:
I installed Intel HAXM but when I try to run it I get this message
Those are my current settings, virtualization is clearly enabled. Is that the correct settings?
有什么办法可以让它在虚拟机中工作吗?
开始赏金的答案不一定是 Virtual Box,但必须是免费的。
HOST PC
GUEST PC
I downloaded the free trial version of VMware and I manage to get it working using those settings below. I tried the exact same settings in VirtualBox and I get the Hyper-V error.
解决方案:
If anyone is wondering I was able to run it in Virtual Box.
This is the settings I used on the AVD:
Warning slow.