After you installed the Android SDK, it’s a good idea to add the tools directory to your search path, which includes a useful collection of command-line tools.
Supposu you have download and install Android SDK, and extract it in another drive, except C:\. There are two methods to set PATH, such as :
- Use command prompt :
- Another is follow the inscructions :
My Computer->Property->Advanced->Environment Variables->Edit Path Variable and add “D:\ android-sdk-windows\tools” into the Path Variables.
Linux and Mac:
Edit the ~/.bashrc or ~/.bash_profile file on that OS,
add “export PATH=$PATH:/tools”, such as:
1. Linux：export PATH=$PATH: /android-sdk-linux/tools
2. Mac：export PATH=$PATH: /android-sdk-Mac_x86/tools
After saved the file, excuting “source ./.bashrc ” to make the PATH setting become effective.