Reputation:
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
Upvotes: 9
Views: 22298
Reputation: 699
Problem in my case turned out to my .zshrc
where my ANDROID_HOME
was exported to a wrong value. Take a look at your .bashrc
or .zshrc
Upvotes: 0
Reputation: 323
I know I'm late, but here it goes.
Preferences
>> Android SDK
>> SDK Tools
Android Emulator
Android Emulator
from the same place.What i personally did, in the process of fixing this.
$PATH
variables. Followed thisAndroid Emulator
, which worked for me. Hope this Helps.
Upvotes: 7
Reputation: 11394
First, make sure that the Intel HAXM is up to date. You update it by opening the SDK and selecting it in the list. (As of 2016-07-08, the latests HAXM version is 6.0.3).
Then, on Mac, the Android SDK gets installed at: /Users/username/Library/Android/sdk/
, therefore, you will need to run the script as sudo, as follows:
sudo sh ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
If all goes well, the script prints the message: "Silent installation Pass!"
Then, restart Android Studio and run your app with the desired AVD.
Upvotes: 33