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

My Android emulator is running properly but it is showing this error every time I start the emulator.

Starting emulator for AVD AVD_for_Nexus_4 emulator: Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator: Open HAX device failed emulator: emulator window was out of view and was recentered

I do not understand what is the exact problem.


Solution 1:

I think you are trying to run an emulator based on x86. I got the same error when I just download the HAXM under Extras category of Android SDK Manager. Actually, you need install it. Go to the directory of extras and run the installation of HAXM. Hope this will solve your problem.

Solution 2:

The solution of Rohan will fix the problem as the error message will not be shown but the emulator will not use the hardware acceleration and thus be again very slow.

I recommend instead to install the Intel Hardware Accelerated Execution Manager as described here:

https://stackoverflow.com/a/10772162/891479