I can't install intel HAXM

前端 未结 24 1192
庸人自扰
庸人自扰 2020-11-28 19:06

I installed Android Studio and I had no problems with that. However, when I tried to run the emulator, it said that Intel HAXM was not installed.

So I found the inst

相关标签:
24条回答
  • 2020-11-28 19:28

    Enter with Administrator user. First, you must enable it http://www.ghacks.net/2014/11/12/how-to-enable-the-hidden-windows-10-administrator-account/

    Install it from C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-andoid.exe

    And login with your user. It work for me.

    0 讨论(0)
  • 2020-11-28 19:29

    This is what worked for me -

    1. Enable Virtualiztion through BIOS (F10-> System Configuration -> Virtualiztion Technology) Depending on your hardware, firmware and BIOS configuration utility the option to enable may be named something else or steps may differ. There is a free software called "Piriform Speccy" which gives information about your machine, which among other things can also be used to check if virtualization is enabled or not on your machine (see screen cap).

    1. Download HAXM intaller from Intel site. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

    2. If using avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting by unchecking.

    Do a hard boot (power button) just to be safe.

    0 讨论(0)
  • 2020-11-28 19:30

    Note: this is not an answer because I could not find a solution. But I think the information may be useful for others (and it wouldn't be practical as a comment). I have tried all of the steps detailed in the various docs but I could not get Android Emulator to work on my AMD Ryzen 7 :(


    Most answers work only for Intel CPUs. If you have an AMD CPU (like me, an AMD Ryzen 7) you need to know about some restrictions and you have to use WHPX instead of HAXM.

    I found this on MS's site: Because the Android emulator currently supports AMD hardware acceleration only on Linux, hardware acceleration is not available for AMD-based computers running Windows.

    Fortunatelly there is a way to make it work but configuring hardware acceleration for an AMD CPU is a bit more complex:

    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.

    Note that there are further restrictions as well:

    • 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.

    Some more info: Android Emulator - AMD Processor & Hyper-V Support

    This recommendation did not help either:

    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”.

    0 讨论(0)
  • 2020-11-28 19:33

    For HP Ultra book with windows 7 enabling hyper-v through bios worked for intel haxm problem.

    For enabling hyper-v:-

    F10-> Bios advanced setting-> device configurations->enable Hyper-V then install.

    It will work.

    0 讨论(0)
  • 2020-11-28 19:33

    If you are using windows, Hyper-V works via AMD not HAXM.

    Try the following: on Android, Click SDK Manager ==>SDK Platforms ==> Show Packages ==>ARM EABI v7a Systems Image.

    After downloading the systems image, go to the AVD Manager ==> Create Virtual Device ==> choose device (e.g. 5.4 FWVGA") ==> Marshmallow armeabi v7a Android6 with Google APIs ==> Change the AVD name to anything (eg. myfirst)==> click finish.

    0 讨论(0)
  • 2020-11-28 19:34

    If Nothing Helps then it means Device Guard and Credential Guard are using the virtualization. I had to disable them by downloading and running the following script from microsoft site.

    DG_Readiness_Tool_v3.5.ps1 -Disable
    

    You may need to run this first if it doesn't allow to run the command

    Set-ExecutionPolicy Unrestricted
    

    Once you do it, you need to restart and confirm disable both when asked just before boot.

    hope it helps!

    0 讨论(0)
提交回复
热议问题