Add Android ADB path Mac OS X Mavericks

When we start developing Android Apps on is useful to add the Android SDK path variables to OSX so we can execute the platforms tools such as the “adb” in the Terminal and control your Android development set up.

The steps are:

– Download the SDK from the android official page
– Unzip the file and save in the Home folder for example
– Launch the Terminal App
– Navigate to the Home folder “cd ~/”
– Write the command “echo $PATH” to see your current environment variables. It will return something similar to the line 2 below

– Create the .bash_profile file with the command “touch .bash_profile”

– After you created the file you need to open it using the following command “open -e .bash_profile” (you can also use vi or emacs)

– Add the the following text and save the file
adb path mac os x
– Then just the final command “. .bash_profile” to reload the environment variables
– Execute the command “echo $PATH” and the Android SDK should be in the path list

The full commands are:

11 thoughts on “Add Android ADB path Mac OS X Mavericks

  1. Per Jakobsen


    If you use android studio on a MAC, works like a charm, thanks for a GREAT post

    1. Jorge Valdivia Post author

      Hi. Your .bash_profile should a have a full address the platform-tools folder like: “export PATH=$PATH:/Users/YOURUSERNAME/android/sdk/platform-tools/” edit your bash_profile and try again.

  2. Boris

    Great post but precision is not there, which creates additional headaches…
    Check out this line in the post:
    “– Then just the final command “. .bash_profile” to reload the environment variables”
    -> The space between dots is missing!


Leave a Reply

Your email address will not be published. Required fields are marked *