我用的是带有AMD处理器的Windows 8.1 pro。我安装了Android SDK和Eclipse。它可以工作,但问题是,当我创建AVD并启动时,它会显示这个错误:

模拟器:错误:x86仿真目前需要硬件加速! 请确保Intel HAXM已正确安装并可用。 CPU加速状态:HAX内核模块未安装!

我已经安装了英特尔Hardware_Accelerated_Execution_Manager,我已经从引导菜单中启用了虚拟调制,但它仍然不起作用。


当前回答

我在这上面浪费了太多时间,之前的答案都没用。我发现Avast是问题所在!!如果你在你的系统中安装了Avast,你必须:

转到设置选项卡—>故障排除,然后您应该取消选中 “启用硬件辅助虚拟化”

如果未安装intelhaxm-android.exe,请重新启动电脑安装。你可以在C:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager找到它

其他回答

所以我有这个问题,似乎除非你在Linux上,否则你将无法使用HAXM。[编辑:这是如果你有一个AMD芯片(非英特尔),当然,这就是问题所在]

如Android网站所述;

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies: Intel Virtualization Technology (VT, VT-x, vmx) extensions > AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

正如其他人所提到的,Genymotion可能是一种解决方案。

对于AMD处理器:

转到AVD管理器并创建一个新的虚拟设备作为ARM系统映像。

首先,你应该启用虚拟化,你可以从BIOS设置。

然后进入控制面板\程序,点击“打开或关闭Windows功能”选项。

现在您将看到一个弹出窗口,选中“Windows Hypervisor Platform”,并通过选中复选框启用它。

重新启动你的电脑,现在AVD应该工作没有任何问题。

我在这上面浪费了太多时间,之前的答案都没用。我发现Avast是问题所在!!如果你在你的系统中安装了Avast,你必须:

转到设置选项卡—>故障排除,然后您应该取消选中 “启用硬件辅助虚拟化”

如果未安装intelhaxm-android.exe,请重新启动电脑安装。你可以在C:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager找到它

While creating a Virtual Device select the ARM system Image. Others have suggested to install HAXM, but the truth is haxm wont work on amd platform or even if it does as android studio does not supports amd-vt on windows the end result will still be a very very slow emulator to run and operate. My recommendation would be to either use alternative emulator like Genymotion (works like a charm with Gapps installed) or switch to linux as then you will get the benefit of amd-vt and emulator will run a lot faster.