Android Studio 3安装HAXM:"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" failed.
Android Studio 在Windows安装HAXM需要检查系统是否支持HAXM。
环境
操作系统
支持的Windows操作系统:
- Microsoft Windows* 10 (32/64-bit)
- Microsoft Windows* 8 and 8.1 (32/64-bit)
- Microsoft Windows* 7 (32/64-bit)
处理器要求
查看cpu处理是否支持:到http://ark.intel.com,输入CPU的型号,查询系统对应的CPU:
CPU需要:
1、支持并开启Execute Disable Bit
2、支持并开启Intel VT-x
如果Execute Disable Bit或者Intel VT-x没有开启则需要进入BIOS。不同电脑进入BIOS方式不同,Execute Disable Bit和Intel VT-x的说法也不相同。
Execute Disable Bit在BIOS说法可能有:"XD", "Execute Disable", "No Execute", "Hardware DEP"
Intel VT-x在BIOS说法可能有: "VT", "Virtualization Technology", "VT-d."
安装步骤
File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK
或直接在Android Studio的右上角选择SDK Manger
在右侧的 SDK Tools下勾选Intel x86 Emulator Accelerator (HAXM installer)
然后点击Apply,按提示安装即可。
安装失败
注意:如果之前安装过HAXM,在新的Android Studio重新安装则需要卸载原来安装的HAXM。
没有卸载原来的HAXM,在Android Studio重新安装HAXM会报以下错误
To install:
- Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)".
Downloading https://dl.google.com/android/repository/extras/intel/haxm-windows_r6_2_1.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in D:\AS\SDK\extras\intel\Hardware_Accelerated_Execution_Manager
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" complete.
Failed to update status to COMPLETE
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 6.2.1)" failed.
Failed packages:
- Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)
卸载HAXM
控制面板 -> 程序 -> 卸载程序
找到Intel® Hardware Accelerated Execution Manager卸载即可