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

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

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


当前回答

在我的例子中,HAXM已经安装在SDK管理器中。但是每次我尝试intelhaxm-android.exe时,它都会默默地失败。

最后,我在7-zip中从intelhaxm-android.exe中提取了内部安装程序。将这三个文件复制到另一个目录,最终得到一个真正的安装程序来运行。顺利运行,HAXM问题也解决了。

其他回答

所以我有这个问题,似乎除非你在Linux上,否则你将无法使用HAXM。[编辑:这是如果你有一个AMD芯片(非英特尔),当然,这就是问题所在]

如Android网站所述;

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies: Intel Virtualization Technology (VT, VT-x, vmx) extensions > AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

正如其他人所提到的,Genymotion可能是一种解决方案。

如果你使用的是Mac,就像@pedro提到的,确保你已经通过Android SDK管理器下载了HAXM安装程序。

接下来安装它!在查找器中导航到/YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/

运行并安装。mpgk到下面的。dmg

约塞米蒂:IntelHAXM_1.1.0_for_10.10.dmg Pre-yosemite: IntelHAXM_1.1.0_below_10.10.dmg El Capitan: IntelHAXM_6.0.1。请安装IntelHAXM_6.0.1。MPGK文件-它会问你是否要重新安装它。只要答应就好。

例子:

$ cd / YOUR_SDK_PATH /配件/英特尔/ Hardware_Accelerated_Execution_Manager / 打开IntelHAXM_1.1.0_below_10.10.dmg美元

确保在SDK管理器上安装了HAXM安装程序。

下载后,确保运行位于: {SDK_FOLDER} \配件\ \ Hardware_Accelerated_Execution_Manager \ intelhaxm.exe英特尔

注意:在Android Studio中,命令“intelhaxm.exe”已更改为“intelhaxm-android.exe”

如果你在安装过程中得到“VT不支持”的错误,禁用windows功能上的Hyper-V。dism.exe /Online /Disable-Feature:Microsoft-Hyper-V。您还需要在BIOS中启用“虚拟化技术”

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

很明显,模拟器团队需要更好地传播关于如何在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.

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