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

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

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


当前回答

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

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

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

其他回答

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

仅限Windows用户

这有点晚了,但刚刚发现一些答案是去bios设置,但对我来说,我能够通过禁用hyper-v功能来解决这个问题。我们通过以下步骤来做到这一点:

我已经安装了HAXM,但它是一个较旧的版本。然后我从SDK管理器更新,然后模拟器工作!

启用虚拟化技术

这在我的案例中是有效的

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

我的电脑是惠普Zbook 1. 引导设备进入BIOS(重新启动设备并继续按F10)。

导航到高级>设备或系统配置>选中“虚拟化技术(VTx)”和“虚拟化技术for Directed I/O (VTd)”前的复选框 保存更改并退出。

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

按照下面的步骤来做

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

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

我希望这能有所帮助。