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

Miles Torres
Miles Torres
2,316 Points

how do i fix this:

Cannot launch AVD in emulator. Output: emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!

Miles Torres
Miles Torres
2,316 Points

How do I get to the SDK directory?

2 Answers

Andy Swinford
Andy Swinford
8,152 Points

These are the steps I have followed in the past that have gotten me going:

1) Open SDK Manager (In Android Studio, go to Tools > Android > SDK Manager) and Download Intel x86 Emulator Accelerator (HAXM installer) if you haven't.

2) Now go to your SDK directory (C:\users\username\AppData\Local\Android\sdk, generally). In this directory Go to extras > intel > Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe".

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. 3) Restart Android Studio and then try to start the AVD again.

Seth Kroger
Seth Kroger
56,413 Points

Open the SDK Manager (through the Tools menu or icon on the toolbar of an Android head with a down arrow) and click on the SDK Tools tab. The "Intel x86 Emulator Accelerator (HAXM..." should be near the bottom of the list. Check the box then click Apply.

Keep in mind that HAXM does require an Intel CPU to work. You won't be able to use it if your PC is AMD based. If that's the case you should switch to one of the "arm" images for the emulator, not the "x86" ones.