我用的是带有AMD处理器的Windows 8.1 pro。我安装了Android SDK和Eclipse。它可以工作,但问题是,当我创建AVD并启动时,它会显示这个错误:

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

我已经安装了英特尔Hardware_Accelerated_Execution_Manager,我已经从引导菜单中启用了虚拟调制,但它仍然不起作用。


当前回答

我不知道这是否有效,但你可以试试这个:

很明显,模拟器团队需要更好地传播关于如何在Windows上使用AMD模拟器的信息。这个问题似乎每周都会出现。

首先,卸载HAXM。

下一步,进入https://developer.android.com/studio/run/emulator-acceleration#vm-windows,按照使用Windows Hypervisor平台配置虚拟机加速的说明操作

最后,如果你的模拟器实例帧率很低,请参考同一页中为Android UI启用Skia渲染的说明。

其他回答

Open SDK Manager and download Intel x86 Emulator Accelerator (HAXM installer) if you haven't. Now go to your SDK directory (C:\users\username\AppData\Local\Android\sdk, generally). In this directory, go to extras → Intel → Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe". In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled", go to your BIOS settings and enable hardware virtualization. Restart Android Studio and then try to start the AVD again.

显示模拟器窗口可能需要一到两分钟。

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.

正如许多人指出的那样,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

我在这上面浪费了太多时间,之前的答案都没用。我发现Avast是问题所在!!如果你在你的系统中安装了Avast,你必须:

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

如果未安装intelhaxm-android.exe,请重新启动电脑安装。你可以在C:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager找到它

的输出需要读取(并发布)

sc query intelhaxm

如http://developer.android.com/tools/devices/emulator.html#accel-vm所述

通过右键单击开始菜单打开命令提示窗口,选择执行并写入'cmd'。

参见Android模拟器不使用HAXM。

如果你不能让模拟器工作,你可能想尝试一个更简单的选择:Genymotion - http://genymotion.com/