ar3
ar3

Reputation: 409

Android Studio Emulator error "Emulator: CPU acceleration status: Unable to open HAXM device: ERROR_FILE_NOT_FOUND"

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

Upvotes: 14

Views: 21634

Answers (7)

tav
tav

Reputation: 11

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

Upvotes: 0

James
James

Reputation: 71

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

Upvotes: 7

Amit Ray
Amit Ray

Reputation: 3485

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.

Upvotes: 0

Mobarak Hossen
Mobarak Hossen

Reputation: 471

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

Upvotes: 0

marcor92
marcor92

Reputation: 547

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

Upvotes: 3

Chanaka
Chanaka

Reputation: 778

I solved that problem following steps

  • disabling Hyper-v
  • reinstalling HAXM
    - Android studio -> SDK Manager -> SDK Tools -> Intel x86 Emulator Accelerator

Upvotes: 10

MohammadAli
MohammadAli

Reputation: 3466

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

Upvotes: 1

Related Questions