I can't install intel HAXM

前端 未结 24 1235
庸人自扰
庸人自扰 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:35

    Option 1: Go to Android SDK Folder --> Extra --> Intel and double click on HAXM installer and install it manually.

    Option 2: If you do not have latest version of HAXM then you can open sdk manager in android studio and download it.

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

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

    I think your problem was that you thought that the installer in Android SDK Manager would actually INSTALL the Intel HAXM. But the hook is that it WILL NOT INSTALL it. What it does is extracts the files needed for (really) install Intel HAXM.

    I found that out when I got the same problem and then read this in Intel's web page:

    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.

    So all I needed to do was go to folder where my Android SDK was, opened that folder (sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager) and run the silent_install.bat.

    After this when I launched my emulator, it said this:

    HAXM is working and emulator runs fast virt mode

    and everything works as should!

    You can also use some useful parameters with silent_install.bat:

    • -v Print HAXM version
    • -c Check VT/NX capability of the platform
    • -h Print usage
    0 讨论(0)
  • 2020-11-28 19:42

    If you are using windows then edit your AVD config to ARMEABI image instead of X86, Also using ARM will give better performance. HAXM installer is required only if you use X86 image.

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

    Good description here: https://developer.android.com/studio/run/emulator-acceleration.html

    You may check current HAXM status with following command:

    sc query intelhaxm

    If you use Windows 10 Home, all issues about Hyper-V is irrelevant for you as it is not supported (Pro is required) and you will not have conflicts :)

    Remark: trying to update HAXM to latest version incidentally removed it, but then can't update with SDK manager, as it shows that latest version 6.1.1 is unsupported for Windows (seems configuration is broken, found 6.1.1 for Mac and 6.0.6 for Windows only inside) So would recommend manually download HAXM and install as described: copy to sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager and run the silent_install.bat

    0 讨论(0)
  • 2020-11-28 19:43
    dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
    

    or

    bcdedit /set hypervisorlaunchtype off
    

    Other things you may need to do:

    • If using Avast? disable Enable hardware-assisted virtualization under: Settings > Troubleshooting
    • bcdedit /set nx AlwaysOn
    • sfc /scannow and reboot

    Important: After anything you try, Restart the PC and try to run the HAXM installation again

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

    None of the suggestions worked on their own.

    Here is what worked for me: chmod -R 777 $ANDROID_HOME

    Then try to install it via android studio -> sdk manager. If its not there, reinstall latest version of Android studio over your current installation. HAXM will show up in SDK manager after that.

    If you do not have ANDROID_HOME set, then YOU are part of the problem. The value of it can be found inside Android Studio project structure. On MAC, just type CMD ; and look at SDK Location on left.

    Simply run chmod -R 775

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