Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 488
ar3 Avatar asked Jul 18 '18 12:07

ar3


People also ask

Do I need HAXM for emulator?

Intel's Hardware Accelerated Execution Manager (HAXM).It is recommended that you use the Hypervisor Framework to accelerate the Android emulator. If the Hypervisor Framework is not available on your Mac, then HAXM can be used.

How do I install hardware acceleration on HAXM?

Intel HAXM can be installed either through the Android SDK Manager (recommended), or manually, by downloading the installer from Intel's website. Note: Intel HAXM does not currently check for updates automatically.


2 Answers

I solved that problem following steps

  • disabling Hyper-v
  • reinstalling HAXM
    - Android studio -> SDK Manager -> SDK Tools -> Intel x86 Emulator Accelerator
like image 199
Chanaka Avatar answered Sep 17 '22 12:09

Chanaka


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

like image 24
Aquarium Avatar answered Sep 19 '22 12:09

Aquarium