Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running the new Intel emulator for Android

Lately Google and Intel have published a new way to run the emulator, which should work much better than the previous version (which has emulated ARM CPU). Here are some links about it: this and this.

However, after installing the new components and creating a new emulator configuration as instructed, I get an error and I also can't see any improvements. I've tried both API 10 and API 15, and with GPU enabled and disabled. None of those configurations helped. I've also tried it on two different computers and didn't get any boost (and got the same errors).

It seems that on the posts I've read about it, nobody had any problems with it and all report a much faster emulator.

The error it shows is:

emulator: Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator: Open HAX device failed 

Why is it happening, and is there a way to fix it? Is there anyone else who gets those errors or vice versa?

By the way, I have an Intel CPU, if that could be a problem.


EDIT:

here's what I see in the BIOS, so it should be available... :

enter image description here

like image 457
android developer Avatar asked May 25 '12 21:05

android developer


People also ask

Which processor is best for Android emulator?

Speaking of performance, the team recommends a device with a Snapdragon 835 processor or better, Android Oreo or higher, and OpenGL ES 3.2.

Can I run emulator without HAXM?

You can use an emulator with the ARM image instead of HAXM provided that you installed it in the SDK manager. Check your SDK manager to see if you have an ARM image instead for the API level you want, then go to the AVD manager and make a virtual device using ARM as the cpu. thank your for answer.

Is Intel HAXM necessary in Android Studio?

The Intel HAXM requires an Intel processor that supports virtualization. Installing or not installing it will make no difference to a computer on an AMD processor. So long story short, you do not need Intel HAXM installed to use Android Studio.

Can I run HAXM?

VM acceleration on Windows can use one of three hypervisors: the Intel Hardware Accelerated Execution Manager (HAXM), the Android Emulator Hypervisor Driver for AMD Processors or the Windows Hypervisor Platform (WHPX).


2 Answers

I had the same issue, solved it by Installing the Intel Hardware Accelerated Execution Manager. Download it with the SDK Manager, it's in Extras. After this, go to the folder

[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager

then run IntelHaxm.exe and install.

Here the link of the Intel Hardware Accelerated IntelHaxm.exe for Microsoft Windows,Mac OS* X, and Linux Ubuntu

enter image description here

You'll get the following message if you don't have virtualization enabled in your BIOS:

enter image description here

like image 129
rallrall Avatar answered Oct 04 '22 16:10

rallrall


Small Note for Windows 8 user, Intel HAX will not work if Hyper-V feature is enable. Hyper-V (like most of the virtualization tech) will exclusively lock the VT extension witch will prevent HAX to work properly. A workaround if you “need” Hyper-V too might be to stop manually the Hyper-V services when you need HAX (haven’t tested it yet through).

like image 36
VeV Avatar answered Oct 04 '22 17:10

VeV