14

I was able to use Emulator in the android studio without any problems. Since today I am getting the error as: "Emulator: CPU acceleration status: Unable to open HAXM device: ERROR_FILE_NOT_FOUND".

Virtualization is enabled in BIOS, Intel Hardware Accelerated Execution Manager is installed in control panel - programs. Also tried installing intelhaxm-android.exe from android sdk folder.

Please help with the error.

(i7/16gb/windows 10).

ar3
  • 369
  • 1
  • 4
  • 18

7 Answers7

10

I solved that problem following steps

  • disabling Hyper-v
  • reinstalling HAXM
    - Android studio -> SDK Manager -> SDK Tools -> Intel x86 Emulator Accelerator
Chanaka
  • 760
  • 1
  • 10
  • 21
  • 1
    This is a bad idea. Because people who have activated Hyper-v has a reason for it. Like to use Docker. So this is not recommended. – Try it Mar 30 '19 at 11:02
7

Use Hyper-V instead of HAXM

I had the same error. Disabling Hyper-V avoided this error however it also stopped Docker from working properly.

To use both the Android Emulator and Docker on Windows 10 you need to:

  • Uninstall the Hardware Accelerated Execution Manager (HAXM)
  • Enable Hyper-V (check by running "Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online" in PowerShell running as Administrator)
  • Enable Windows Hypervisor Platform
  • Restart your computer
  • Enable Virtualization Technology in your computer's BIOS
  • Enable Hardware Enforced Data Execution Prevention in the BIOS

Enable Hyper-V and Windows Hypervisor Platform in Control Panel\Programs\Programs and Features -> Turn Windows features on or off

Enable Windows Hypervisor

Microsoft recommends that you use Hyper-V instead of HAXM to accelerate the Android emulator (detailed instructions).

Aquarium
  • 71
  • 1
  • 3
  • To remove HAXM run C:\Users\username\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe. – Aquarium Feb 14 '19 at 03:17
  • 2
    this is absolutely the right answer. But it's also important that you uncheck HAXM in Android Studios under: Tools --> SDK Manager --> SDK Tools (tab) --> Intel x86 Emulator Accelerator (HAXM) – Try it Mar 30 '19 at 11:01
  • "intelhaxm-android.exe" can be used to remove HAXM, however unchecking "Intel x86 Emulator Accelerator (HAXM installer)" will also remove the installation files. – Aquarium Apr 01 '19 at 00:25
3

I had the same issue, and solved it by disabling the Hyper-V hypervisor on Windows (from the "Activate/Deactivate Windows Functionalities" menu).

marcor92
  • 417
  • 5
  • 13
1

1st you uninstall the hexm everywhere also in android studio :

Download haxm version haxm-macosx_v7_0_0.zip from here Click Me

And Follow this steps : Haxm error in android studio 3.0 with windows requires a digitally signed driver

piet.t
  • 11,718
  • 21
  • 43
  • 52
Ali
  • 3,346
  • 4
  • 21
  • 56
  • getting this error on trying to install haxm - this computer does not support intel virtualization or used by hyper v. I have checked windows features and hyper-v is disabled already. – ar3 Jul 18 '18 at 13:20
  • can you enable the virtualization in BIOS ? – Ali Jul 18 '18 at 13:20
0

You can disable hyper-v or you can visit here

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 Android emulator directly on your system hardware

Mobarak Hossen
  • 341
  • 2
  • 5
  • 1
    Try to improve the answer format. It will help to sounds better to reach your answer. Give link using []() – Agilanbu Nov 28 '18 at 06:35
0

For me Hyper-V hypervisor was not installed but still I got the error. What I did was I went to SDK Manager->SDK Tools and there I unchecked Intel x86 Emulator Accelerator clicked apply. Closed my Android studio and then reopened Android studio and again went to SDK Manager->SDK Tools and installed Intel x86 Emulator Accelerator by checking the item and clicking apply. And it started working fine.

Amit Ray
  • 3,445
  • 2
  • 19
  • 35
0

I had the same problem, but I need Hyper-V for Docker.

So according to the official documentation, you have 3 choices (the second solution helped me):

  • You have an Intel processor and do not need to run Hyper-V at the same time as the Android Emulator.
    Use Intel HAXM.
  • You have an Intel processor and do need to run Hyper-V at the same time as the Android Emulator.
    Use WHPX.
  • You have an AMD processor.
    Use WHPX.

See: https://developer.android.com/studio/run/emulator-acceleration#choose-windows-hypervisor

tav
  • 1
  • 1