我用的是带有AMD处理器的Windows 8.1 pro。我安装了Android SDK和Eclipse。它可以工作,但问题是,当我创建AVD并启动时,它会显示这个错误:
模拟器:错误:x86仿真目前需要硬件加速! 请确保Intel HAXM已正确安装并可用。 CPU加速状态:HAX内核模块未安装!
我已经安装了英特尔Hardware_Accelerated_Execution_Manager,我已经从引导菜单中启用了虚拟调制,但它仍然不起作用。
我用的是带有AMD处理器的Windows 8.1 pro。我安装了Android SDK和Eclipse。它可以工作,但问题是,当我创建AVD并启动时,它会显示这个错误:
模拟器:错误:x86仿真目前需要硬件加速! 请确保Intel HAXM已正确安装并可用。 CPU加速状态:HAX内核模块未安装!
我已经安装了英特尔Hardware_Accelerated_Execution_Manager,我已经从引导菜单中启用了虚拟调制,但它仍然不起作用。
当前回答
首先,你必须在BIOS中启用Intel虚拟化技术:
第二,导航到您的SDK…\extras\intel\Hardware_Accelerated_Execution_Manager:
然后安装intelhaxm-android.exe。
注意,如果你在目录中找不到这个文件,请确保从SDK管理器中安装这个包:
其他回答
正如许多人指出的那样,Intel HAXM只支持Intel cpu。自Windows 1804以来,您可以使用微软的Hyper-V而不是HAXM作为模拟器。这也可以帮助那些想要在虚拟机中使用Hyper-V的人,因为你需要禁用Hyper-V来运行haxm。
短版:
安装Windows Hypervisor平台特性 更新至androidemulator 27.2.7或以上版本 将WindowsHypervisorPlatform = on放入C:\Users\your-username\.android\advancedFeatures.ini或使用-feature WindowsHypervisorPlatform启动模拟器或命令行 在BIOS设置中启用IOMMU
长版本,更多细节:
https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/
需求文档:
https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/system-requirements-for-hyper-v-on-windows
我最近也遇到了同样的问题。
我在你的SDK管理器上安装了HAXM安装程序:
然后安装最新的Intel HAXM驱动程序:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement
瞧! !模拟器的工作就像一个魅力:)
这为我解决了这个问题:
转到(C:\users\%USERNAME%\AppData\Local\Android\sdk)。
然后进入Extras -> Intel -> Hardware_Accelerated_Execution_Manager,运行名为“intelhaxm-android.exe”的文件。
如果您遇到类似“Intel虚拟化技术(vt,vt-x)未启用”的错误,请进入BIOS设置并启用硬件虚拟化。
重启工作室
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.
的输出需要读取(并发布)
sc query intelhaxm
如http://developer.android.com/tools/devices/emulator.html#accel-vm所述
通过右键单击开始菜单打开命令提示窗口,选择执行并写入'cmd'。
参见Android模拟器不使用HAXM。
如果你不能让模拟器工作,你可能想尝试一个更简单的选择:Genymotion - http://genymotion.com/