[Tips for Android developer] : Android SDK tools PATH setting

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.

Windows:

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 :

  1. Use command prompt :
    set path=%path%;D:\android-sdk-windows\tools;
  2. 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.

That’s it! 😀

Advertisements

3 thoughts on “[Tips for Android developer] : Android SDK tools PATH setting

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s