Wednesday, February 22, 2017

Set and Register Android SDK into System Environment /System Path



Registering your Android SDK to System Environment has advantage that you can do what Android SDK do directly from Command Line. This will decrease your dependency from 3rd party tools.

Doing so, will make "android" command available in CMD/CLI so you can invoke various Android SDK tools commands such as :
  1. Creating Android Project (YES, create android project)
  2. Update Android SDK from the console
  3. Manage Android SDK
  4. List SDK Packages
  5. Connect your Android device to your PC
  6. Install your app from PC to your device
  7. Copy file from PC to Android device or vice versa
  8. Take screenshot of your connected device right from the PC
  9. Record your device activity as video
  10. Hacking your droid phone from PC
  11. Etc.

How do we set android to system environment?

This small step is the gate :D This will register the path permanently on your system, unless you remove or edit it ..
NOTICE: This assume that you've already installed Android SDK Tools (Manager) previously.


Here's how to set Android SDK to system Environment for Windows:

  1. Open system properties from CMD, type : control sysdm.cpl,,3 This will open System Properties window
  2. Now, you are on "Advanced" tab , hit "Environment Variables"
  3. On system variables Hit "new "
  4. Add ANDROID_SDK as var name and for value , enter where is your Android SDK location.
    Hit OK
    If your SDK is NOT on E:\AndroidSDK that’s fine, just enter that .This will be vary from user to user
  5. Go back to System Variables , and look at "Path" variable and hit EDIT
  6. Put your cursor in the END of your variable value and type  ;%ANDROID_HOME%/tools;%ANDROID_HOME%/platform-tools;  Make sure to add ";" before  %ANDROID_HOME% if it not there.
  7. Hit OK

Set and Register Android SDK into System Environment System Path
Set Android SDK to system environment

Congratulation Android SDK has been set and registered to your system. To check , try to type "android sdk" from your CMD/CLI.
If the Android SDK's GUI appear, it means you have successfully set it to the environment.
If it says "android is not recognized as …." , means there is something wrong when you registered /set the SDK

Set Android SDK to system environment for Unix please see general "how" and adjsut as your need

http://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables