Sunday 27 September 2015

How to set environment variables on Windows PC for Android Development

Before start developing android applications there is a major factor that we have to set environment variables on windows computer, without environment variable we cannot develop android applications.

What is environment variable definition.

Environment variable means %windir% , The path of windows installed folders & files. This variable contains all the folders including sub files path of windows files, That means it knows where your windows installation directory is located.

Why setting up environment variable is so much important on android app development purpose.

Set up variables setting on computer before starting android app development is so much important because, there are multiple sub files & folder include on Android SDK Tools every folder has its unique files to run, compile, design, android applications. SDK package also contains built in libraries, android emulator, android system image according to version of android, add-on's, build tools, helping documents, all installed android platforms, source codes. When we set up environment variable, it tells windows computer where Android SDK folder is located on computer. So each and every time when Eclipse or Android studio is start, it will automatically call & compile android sdk tools, platform tools, JDK( java development kit) bin folder.
JDK installed folder path setup is so much important for android development because android files compiled on java bin path.

How to set environment variables on Windows 8.1, Windows 10, Windows 7, 32 bit & 64 bit versions.

  1. Right click on My Computer -> Properties.
  2. Select Advanced system settings.
  3. Select Advanced -> Environment variables.
  4. Under System variables click on New. Set variable name as JAVA_HOME & Variable value as C:\Program Files (x86)\Java\jdk1.7.0_72 and save it.
  5. After that find Path variable and edit, then paste here Android sdk manager platform tools, tools folder path. Like my sdk installed platform tools folder path is F:\Software\Android Development\SDK Manager\platform-tools and tools folder path is F:\Software\Android Development\SDK Manager\tools . Save all these settings and after that restart your computer.

No comments:

Post a Comment