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

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

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


当前回答

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

其他回答

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

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

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

如果您使用的是AMD CPU,现在正式支持AMD虚拟化(如Ryzen CPU)。确保在BIOS中开启了虚拟化。

在“打开或关闭Windows功能”(你可以通过Windows搜索找到它)中,你需要启用它

Windows 10上的Windows Hypervisor平台17134.1(1803)2018年4月更新或更新(通常在文章中没有提到) hyper - v

重启并启动模拟器(x86版本)后,它应该开始启动,不会出现上述错误。

对于那些仍然有问题的人,你可以尝试使用另一个Android模拟器,如Genymotion。

我正在使用Ryzen 5处理器,安装了最新的Windows 10更新(1809),但仍然无法安装HAXM。所以,我解决这个问题的方法是:

在BIOS设置中启用“硬件虚拟化” 在Windows特性中启用Hypervisor平台 安装Genymotion与虚拟盒子-选择个人使用 安装Genymotion Android Studio插件——在Android Studio插件设置中找到

你可以从这里出发了。

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

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

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