我尝试在Android Studio中运行我的Hello World应用程序。我得到了以下错误:
模拟器:ERROR: x86仿真目前需要硬件 加速度! 请确保Intel HAXM已正确安装并可用。 CPU加速状态:HAX内核模块未安装!
你能告诉我如何处理这个错误吗?
我尝试在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
其他回答
对我来说,以下的解决方案是有效的:
1]进入BIOS设置并启用虚拟化。
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
我已经安装了HAXM,但它是一个较旧的版本。然后我从SDK管理器更新,然后模拟器工作!
以下步骤在Mint 17.2 Rafaela上有效:
打开终端,输入:sudo apt-get install qemu-kvm 重启你的电脑,在BIOS设置中启用虚拟化技术 再次在终端中插入:sudo kvm-ok
启用虚拟化技术
这在我的案例中是有效的
重新启动计算机 连续按“Esc”键,然后按“F10”进入BIOS设置界面 配置 检查虚拟化技术
我的电脑是惠普Zbook 1. 引导设备进入BIOS(重新启动设备并继续按F10)。
导航到高级>设备或系统配置>选中“虚拟化技术(VTx)”和“虚拟化技术for Directed I/O (VTd)”前的复选框 保存更改并退出。