我尝试在Android Studio中运行我的Hello World应用程序。我得到了以下错误:

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

你能告诉我如何处理这个错误吗?


当前回答

我在这上面浪费了太多时间,我发现问题出在AVAST上!! 如果你在你的系统中安装了AVAST,你必须:

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

重启电脑,如果没有安装intelhaxm-android.exe,请安装。 你可以找到它:

C:\Users\ {YOURUSERNAME} \ AppData \本地Android \ sdk \ \配件\ \ Hardware_Accelerated_Execution_Manager英特尔

其他回答

Right click on your my computer icon and the CPU will be listed on the properties page. Or open device manager and look at the CPU. It must be an Intel processor that supports VT and NX bit (XD) - you can check your CPU # at http://ark.intel.com Also make sure hyperV off bcdedit /set hypervisorlaunchtype off XD bit is on bcdedit /set nx AlwaysOn Use the installer from https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager If you're using Avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting. Restart the PC and try to run the HAXM installation again

我通过在系统设置中启用虚拟化技术解决了这个问题。

按照下面的步骤来做

重启电脑 连续按“Esc”键,然后按“F10”进入BIOS设置界面 配置 检查虚拟化技术

您的系统设置可能会根据您的计算机而改变。你可以谷歌(如何启用virtualizatino YOUR_PC_NAME)。

我希望这能有所帮助。

如果您最近在Windows操作系统上安装了Docker,则需要关闭Hyper-V特性。请参见安装HAXM时“不支持VT”的顶部答案

以下步骤在Mint 17.2 Rafaela上有效:

打开终端,输入:sudo apt-get install qemu-kvm 重启你的电脑,在BIOS设置中启用虚拟化技术 再次在终端中插入:sudo kvm-ok

我遇到了同样的问题,但在我的BIOS上关闭Hyper-V并启用VT-x后,我仍然无法安装intelhaxm-android.exe程序。

为了解决我的问题,我不得不关闭Windows防御程序内存完整性

检查这里的步骤-> https://github.com/intel/haxm/issues/105