Farhan Sahibole Farhan Sahibole - 5 months ago 14
Android Question

Unable to launch android emulator in Mac

I have been working on an android project, I am using android studio on my iMAC[Software OS X 10.9.5, Graphics Intel HD Graphics 5000 1024 MB, Processor 1.4 GHz Intel Core i5].

When i try to open my application on an android emulator it get this error-

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!


I can find so many similar issues with solution on Google & SO, but i am unable to use those solutions for MAC???

I followed all the steps given here but with no luck, still unable to launch emulator. I think there is something to do with mac os.

Can anyone tell me how to do this on MAC ??

Thanks

Answer

I also had the same issue once, I dont think there is any issue with MAC. The error message itself says what can be the issue.

Please ensure Intel HAXM is properly installed and usable.

Make sure you have

Intell x86 Emulator Accelerator (HAXM installer)

installed in your PC. To check the same use the steps mentioned below

Step 1 Open your android SDK Manager, find this package in Extras directory. If it is not installed, install it.

Step 2 Now try to launch your application in emulator, if your emulator appears, your package is downloaded and installed successfully. If not, then your package is probably downloaded but not installed.

Step 3 Install the package manually- Go to the SDK Path where your Android SDK in present, in my case its here

/Users/myusername/Library/Android/sdk

You can find this path at the top of your SDK Manager.

I will prefer using Terminal for the further process. Launch your terminal (Applications->Utilities->Terminal) Now go to sdk path run following cd command-

cd /Users/username/Library/Android/sdk

You will find your downloaded package in extras/intel/Hardware_Accelerated_Execution_Manager

Run this command

cd extras/intel/Hardware_Accelerated_Execution_Manager

You will find IntelHAXM_1.1.4.dmg file inside, which we have to run to install our package

Now to install this .dmg file do the following steps-

DMG is basically a disk image so, we have to mount it using-

sudo hdiutil mount IntelHAXM_1.1.4.dmg

If everything was perfect, A mounted disk image appears on the Desktop, in the Finder, and more importantly shows up as a directory in /Volumes.

Now simply double click on the mounted disk appeared on your desktop, follow the installation and your done.

Thanks