Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix: "HAX is not working and emulator runs in emulation mode"

Question is

I get "HAX is not working and emulator runs in emulation mode", is this related to Intel x86 Emulator Accelerator (HAXM) installation and running avd with cpu set to CPU Intel Atom (x86)? And even though it feels like AVD runs faster after i installed HAXM, does this message indicates that AVD performance is hindered. Should it be fixed and if so, how?

I am running on mac os x 10.9.1.

Listing what is installed on my system via android sdk manager:

  • Tools
    • Android SDK Tools Rev 22.3
    • Android SDK Platform-tools rev 19.0.1
    • Android SDK Build-tools Rev 19.0.1
    • Android SDK Build-tools Rev 19

==

  • Android 4.4.2 (API 19)
    • SDK Platform
    • ARM EABI v7a System Image
    • Intel x86 Ato System Image
    • Google APIs
    • Sources for Android SDK

==

  • Extras
    • Intel x86 Emulator Accelerator (HAXM) AND I ALSO run dmg installer as well, and installed hot fix, after i found out about it.

AVD set up

  • Platform 4.4.2
  • API Level 19
  • CPU Intel Atom (x86)

Once i run avd:

(ruby-2.0.0-p353) .android   $ tools/emulator -avd 1AVD -wipe-data -no-boot-anim -cpu-delay 0 

i get following and emulator eventually loads

emulator: The memory needed by this VM exceeds the driver limit.  HAX is not working and emulator runs in emulation mode 
like image 353
GnrlBzik Avatar asked Jan 09 '14 21:01

GnrlBzik


People also ask

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.

How do I fix Intel HAXM is required to run this AVD?

Follow the below steps to solve Intel Haxm Is Required:In System Configuration you need to enable VIRTUALIZATION TECHNOLOGY. Once you have enabled the Virtualization Technology, you need to save the changes. Next, exit the BIOS. After that, boot your windows and launch Android studio.

Is HAXM an emulator?

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

Yes it should be fixed, HAXM isn't working. How much RAM is set for use inside your AVD configuration ?

768M is a good number for it, but most importantly this number has to be lower or equal to the memory usage you have set during the installation of HAXM. You can launch its installation again to modify it.

like image 118
ph0b Avatar answered Oct 12 '22 15:10

ph0b


If you are on a mac you can install haxm using homebrew via cask which is a built-in extension (as of 2015) which allows installing non-open-source and desktop apps (i.e. chrome, firefox, eclipse, etc.):

brew cask install intel-haxm  

Android Studio

If you are using Android Studio then you can achieve the same result from the menu ToolsSDK Manager, and then on the SDK Tools tab, select the checkbox for Intel x86 Emulator Accelerator (HAXM installer), and click Ok.

like image 31
ccpizza Avatar answered Oct 12 '22 16:10

ccpizza