Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Getting Started with Android Running the Fun Facts Project

Andrew D.
Andrew D.
2,937 Points

HAX is not working/Memory needed by this VM exceeded by driver limit.

Hey everyone, I keep getting the following error when trying to run Fun Facts:

emulator: device fd:688 emulator: The memory needed by this VM exceeds the driver limit. HAX is not working and emulator runs in emulation mode

I did a little research online and apparently I need to re-install HAX and set the limit to 1024 MB, or 1 GB. But does anyone know where I go within Android Studio to re-install it? Any advice appreciated.

2 Answers

Hello,

To remove HAXM, you are going to need to go into your control panel(if you are running Windows), then go to Programs and Features. Uninstall "Intel Hardware Accelerated Execution Manager". From this point, I would recommend downloading manually and following the directions found here.

Also dont forget to close and reopen Android studios for the changes to take effect

Andrew D.
Andrew D.
2,937 Points

Thank you both, James and Anthony!

After lots of research on stack exchange it seems like the only way to get this to work is to Have the ram of your AVD lower or equal to the memory usage you set HAXM to during install

768M is a good number for it, and seems to be the only numbers that work for me. You can launch haxm installation again to modify it. out of your android SDK folder > extras > intel. REMEMBER: You need to change the ram settings in side INTEL program to 768 and then inside android studio click avd manager>Right click the emulator you are using and go to Edit>click Advanced options and scroll down to Ram and set that to 768 also, After finished and you run you will get this as a confirmation "emulator: device fd:676 HAX is working and emulator runs in fast virt mode" and the emulator window will pop open, After fighting this for the majority of the day i got it justnow