无法在android studio中创建虚拟设备,错误:HAXM安装失败



在创建虚拟设备时,它表示没有安装haxm。

在我的笔记本电脑中,我有AMD Ryzen 5,haxm是英特尔的工具,甚至我在我的系统中也找不到Hyper-V的选项。错误显示:

HAXM installation failed. To install HAXM follow the instructions found at: https://software.intel.com/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
Installer log is located at C:UsersUSER~1AppDataLocalTemphaxm_log2.txt
Installer log contents:
=== Logging started: 7/18/2020  12:46:05 ===
This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed. 
Please ensure Hyper-V is disabled in Windows Features, or refer to the Intel HAXM documentation for more information.
=== Logging stopped: 7/18/2020  12:46:08 ===
Done

您需要从BIOS启用VT-X虚拟技术,如果您使用的是Windows,则转到BIOS,您会发现VT-X技术只是启用了它。之后,您需要安装HAXM,它将在模拟器中为您提供更好的加速。

您应该验证主板和CPU虚拟化支持是否已启用。

当你打开电脑/笔记本电脑时,进入BIOS设置(通常按F2或DEL键(,并验证下一个选项是否合成:

Intel VT-x:
BIOS Setup -> Advanced -> CPU Configuration -> Intel Virtualization Technology -> Enabled.
AMD SVM Mode:
BIOS Setup -> Advanced -> CPU Configuration -> SVM Mode -> Enabled.
IOMMU
BIOS Setup -> Advanced -> North Bridge Configuration-> IOMMU -> Enabled.

然后,通常启动您的PC/笔记本电脑,在操作系统(Windows、Linux等(上启动,然后安装Intel HAXM。如果一切正常,安装时应该不会出现问题。

最新更新