关于android:我无法安装intel HAXM

I can't install intel HAXM

我安装了Android Studio,但没有任何问题。 但是,当我尝试运行仿真器时,它表示未安装英特尔HAXM。

因此,我找到了安装程序并运行它,即使它说我的笔记本电脑支持该安装程序,也未启用它。 我去启用了英特尔虚拟化技术(VT-x),但仍然收到相同的消息。

我听到有关Hyper-V的信息需要禁用,但是当我转到"打开/关闭Windows功能"时,在该列表中找不到它。

有人可以帮我弄这个吗?


好吧,所以我做了所有可能在网上找到的事情,但是没有任何效果。

因此,我去了英特尔网站,然后下载了他们提供的HAXM安装程序(而不是使用通过Android Studio下载的安装程序)。

该安装程序实际上已完成安装,并已成功安装。然后,我打开Android Studio,并最终加载了模拟器!

因此,对于其他任何有此问题的人,只需直接从英特尔网站下载安装程序即可。

这是链接:

https://software.intel.com/zh-CN/android/articles/intel-hardware-accelerated-execution-manager


我认为您的问题是您认为Android SDK Manager中的安装程序实际上会安装Intel HAXM。但问题是它不会安装它。它的作用是提取(确实)安装英特尔HAXM所需的文件。

当遇到同样的问题时,我发现了这一点,然后在英特尔的网页上阅读了以下内容:

Downloading through Android* SDK Manager

... Other steps ...

5) The SDK Manager will download the installer to the"extras" directory, under the main SDK directory. Even though the SDK manager says"Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the"extras" directory to get it installed.

6) Run the installer inside the /sdk/extras/intel/Hardware_Accelerated_Execution_Manager/ directory and follow the installation instructions for your platform.

因此,我要做的就是转到Android SDK所在的文件夹,打开该文件夹(sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager)并运行silent_install.bat

此后,当我启动模拟器时,它会说:

HAXM is working and emulator runs fast virt mode

一切都应该正常工作!

您还可以在silent_install.bat中使用一些有用的参数:

  • -v打印HAXM版本
  • -c检查平台的VT / NX功能
  • -h打印用法


我遇到了这个问题,我也找到了解决方案,它将起作用。

步骤1:进入BIOS设置,然后检查INTERNET VIRTUAL TECHNOLOGY是启用还是禁用。

并确保已禁用HYPERV。
禁用它:
a)转到控制面板
b)点击程序(卸载程序)
c)然后单击"打开或关闭Windows功能",然后寻找HYPER-V并取消选中它。并重新启动。
如果禁用,则启用它。

步骤2:尝试立即安装Intel HAXM并重新启动。如果再次显示相同的问题。
转到步骤3。

步骤3:您必须禁用数字签名的强制执行。要永久禁用它,必须确保在系统中禁用了"安全启动"选项。

如何检查?

在下面的链接中给出了答案。我是在互联网上找到的。[感谢创建该博客的人]

链接:http://www.windowspasswordsrecovery.com/win8-tips/how-to-disable-uefi-secure-boot-in-windows-8-1-8.html

步骤4:现在再次重启。

要在Windows 10中永久禁用驱动程序签名强制实施,您需要执行以下操作:

1.打开提升权限的命令提示符实例。
2.键入/粘贴以下文本:

1
     `bcdedit.exe /set nointegritychecks on`

或Windows 10

1
     `bcedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS`

Windows 10禁用驱动程序签名强制实施

重新启动Windows 10。

*如果您想以某种方式再次启用它:

1.键入/粘贴以下文本:

1
     `bcdedit.exe /set nointegritychecks off`

确保在安装HAXM时模拟器未在运行。否则,只会在使用独立安装程序时出现错误,而不会在Android Studio或IntelliJ Idea中出现。


1
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

要么

1
bcdedit /set hypervisorlaunchtype off

您可能需要做的其他事情:

  • 如果使用Avast?在以下位置禁用启用硬件辅助虚拟化:设置>故障排除
  • bcdedit /set nx AlwaysOn
  • sfc /scannow并重新启动

重要提示:尝试任何操作后,请重新启动PC并尝试再次运行HAXM安装


这就是对我有用的-

  • 通过BIOS启用虚拟化(F10->系统配置->虚拟化技术)
    根据您的硬件,固件和BIOS配置实用程序,启用选项可能会被命名为其他名称,或者步骤可能会有所不同。
    有一个名为" Piriform Speccy"的免费软件,它提供有关您的计算机的信息,此外,该软件还可以用于检查计算机上是否启用了虚拟化(请参阅屏幕截图)。
  • Check if virtualization enabled with Speccy

  • 从英特尔站点下载HAXM intaller。 https://software.intel.com/zh-CN/android/articles/intel-hardware-accelerated-execution-manager

  • 如果使用avast,请在以下位置禁用"启用硬件辅助虚拟化":设置>取消选中故障排除。

  • 为了安全起见,请进行硬启动(电源按钮)。


    对于具有Windows 7且通过BIOS启用Hyper-V的HP Ultra笔记本,它可以解决intel haxm问题。

    启用hyper-v:-

    F10-> Bios高级设置->设备配置->启用Hyper-V,然后安装。

    它会工作。


    我知道了
    尝试在BIOS选项中禁用"安全启动控制":http://remontka.pro/secure-boot-disable/(对不起,俄语示例)
    或者尝试启动没有数字签名的系统(仅一次加载)。
    在禁用此行之前,我曾尝试过很多'HAXM安装程序。
    一开始我以为是因为安装了Windows 10 Home,并且有很多限制。


    仍然在2019年10月,这个问题仍然存在。我如何解决此问题:

    步骤1:下载并安装了Android Studio。但是它无法安装HAXM。

    步骤2:然后运行AVD。然后提示创建虚拟设备。但是它也失败了。

    步骤3:我从intel的GitHub来源下载了最新的HAXM。从这里github.com/intel/haxm/releases/latest

    步骤4:然后手动安装HAXM。文档在这里:在Windows上安装独立的Intel HAXM

    步骤5:然后再次尝试创建Pie的虚拟设备。它成功创建了它。

    但是,如果您的第5步仍然失败,则可能有另一种解决方案:下载.zip文件时,它将显示SDK路径以及.zip文件的源路径。因此,您可以手动下载.zip并将其放置到SDK路径文件夹中。然后可以再次尝试创建虚拟设备。


    注意:这不是答案,因为我找不到解决方案。但我认为这些信息可能对其他人有用(并且作为注释不实用)。
    我已经尝试了各种文档中详细介绍的所有步骤,但无法使Android Emulator在我的AMD Ryzen 7上工作:(

    大多数答案仅适用于Intel CPU。
    如果您有AMD CPU(如我,AMD Ryzen 7),则需要了解一些限制,并且必须使用WHPX而不是HAXM。

    我在MS网站上发现了这一点:由于Android模拟器当前仅在Linux上支持AMD硬件加速,因此硬件加速不适用于运行Windows的基于AMD的计算机。

    值得一提的是,有一种方法可以使它工作,但是为AMD CPU配置硬件加速要复杂一些:

    Requirements and recommendations:
    - AMD CPU recommendation: AMD Ryzen CPU
    - Android Studio 3.2 Beta 1 or higher
    - Android Emulator version 27.3.8 or higher
    - Windows 10 with April 2018 Update or higher

    To use WHPX acceleration on Windows, you must enable the Windows
    Hypervisor Platform option in the Turn Windows features on or off
    dialog box. For changes to this option to take effect, restart your
    computer.

    Additionally, the following changes must be made in the BIOS settings:
    - AMD CPU: Virtualization or SVM must be enabled.

    请注意,还有其他限制:

    • You can't run a VM-accelerated emulator inside another VM, such as a VM hosted by VirtualBox, VMWare, or Docker. You must run the emulator
      directly on your system hardware.
    • You can't run software that uses another virtualization technology at the same time that you run the accelerated emulator. For example,
      VirtualBox, VMWare, and Docker currently use a different
      virtualization technology, so you can't run them at the same time as
      the accelerated emulator.

    更多信息:Android模拟器-AMD处理器和Hyper-V支持

    该建议也没有帮助:

    Please note: More recent versions of the emulator (27.2.8, 27.3.0, or
    later), require an emulator flag while the feature is in the preview.
    To do this, create or edit the file
    C:\Users\.android\advancedFeatures.ini and add the
    line"WindowsHypervisorPlatform = on", or start the emulator from the
    command line with"-feature WindowsHypervisorPlatform".


    以管理员用户身份输入。
    首先,必须启用它
    http://www.ghacks.net/2014/11/12/how-to-enable-the-hidden-windows-10-administrator-account/

    C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-andoid.exe安装

    并用您的用户登录。它对我有用。


    此处的详细说明:https://developer.android.com/studio/run/emulator-acceleration.html

    您可以使用以下命令检查当前的HAXM状态:

    sc查询智能

    如果您使用Windows 10 Home,则与Hyper-V有关的所有问题对您来说都是无关紧要的,因为它不受支持(需要Pro),并且不会有冲突:)

    备注:尝试将HAXM更新到最新版本时偶然将其删除,但是随后无法使用SDK Manager更新,因为它表明Windows不支持最新版本6.1.1(似乎配置已损坏,对于Mac和6.0发现6.1.1。 .6仅适用于Windows)
    因此,建议手动下载HAXM并按照说明进行安装:
    复制到sdk_location / sdk / extras / intel / Hardware_Accelerated_Execution_Manager并运行silent_install.bat


    如果您使用的是Windows,则将您的AVD配置编辑为ARMEABI映像而不是X86,同时使用ARM将提供更好的性能。仅当您使用X86映像时,才需要HAXM安装程序。


    创建新的虚拟设备时,它会提示您安装HAXM:

    1
    Tools > Android > AVD Manager

    它将通过Android Studio自动安装。


    选项1:转到Android SDK文件夹->附加->英特尔,然后双击HAXM安装程序并手动安装。

    选项2:如果您没有最新版本的HAXM,则可以在android studio中打开sdk管理器并下载。

    选项3:从英特尔站点下载HAXM安装程序。 https://software.intel.com/zh-CN/android/articles/intel-hardware-accelerated-execution-manager


    如果没有帮助,则表示Device Guard和Credential Guard正在使用虚拟化。我必须通过从Microsoft网站下载并运行以下脚本来禁用它们。

    1
    DG_Readiness_Tool_v3.5.ps1 -Disable

    如果不允许运行该命令,则可能需要先运行此命令

    1
    Set-ExecutionPolicy Unrestricted

    完成后,您需要重新启动并在引导前被询问时确认都将其禁用。

    希望能帮助到你!


    我认为您将不在(您的PC) Appdata Local Android sdk(默认路径)中安装Android SDK文件。当您双击" intelhaxm-android.exe"文件时,也什么也没有。

    如果是这样,浏览(您的PC) Appdata Local Temp intel HAXM 6.0.3(yyyy-mm-dd_hh_mm_ss)(或无声),那么您必须看到" hax64"(或hax)文件,并且只需调用此文件。


    如果您使用的是Windows,则Hyper-V可通过AMD而非HAXM运行。

    请尝试以下操作:在Android上,单击SDK Manager ==> SDK Platforms ==> Show Packages ==> ARM EABI v7a Systems Image。

    下载系统映像后,转到AVD管理器==>创建虚拟设备==>选择设备(例如5.4 FWVGA")==>具有Google API的棉花糖armeabi v7a Android6 ==>将AVD名称更改为任何名称(例如。 myfirst)==>单击完成。