How to set Android SDK PATH in Mac

Generally the Android SDK is installed in /Users/userName/Library/Android/sdk folder in Mac.

Open Terminal and follow below steps:

Go to your home directory
cd

Create user bash profile in user home directory using nano

$ nano .bash_profile

Add the PATH variable to .bash_profile
export ANDROID_HOME=/Users/userName/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH/:$ANDROID_HOME/platform-tools

To Save the changes: Ctrl+O, a message will appear to write a file name, Press Enter/Return.
To Exit : Ctrl+X 

Load the .bash_profile file.
$ source .bash_profile

Comments

Popular posts from this blog

PANIC: Broken AVD system path Check your ANDROID_SDK_ROOT

PANIC: Missing emulator engine program for 'x86' CPU.