I have just installed Android Studio 0.2.2. I want to add the SDK tools to the $PATH, which are in this folder:
/Applications/Android\\ Studio.a
It seems that newer versions of Android Studio don't come bundled with the SDK. So, /Applications/Android\ Studio.app/sdk/tools will no longer work.
After launching the SDK Manager from Android Studio, I realized the new path is
/Users/$USER/Library/Android/sdk/tools.
Open your ~/.bash_profile file by issuing the command open ~/.bash_profile on the terminal
Add the following lines to the end of that file
export PATH=/Users/$USER/Library/Android/sdk/tools:$PATHexport PATH=/Users/$USER/Library/Android/sdk/tools/bin:$PATHexport PATH=/Users/$USER/Library/Android/sdk/platform-tools:$PATHSave and close the ~/.bash_profile file
If you want the changes to take action on the current terminal, then source ~/.bash_profile; otherwise, close and re-open the terminal, and the changes will take place automatically