Android Environment Setup -Set up development environment | W3schools


First of all, you must know that developing an Android application is very easy. To develop an Android application, you will be required to have any of the following operating systems.
* Microsoft Windows – Windows XP and higher versions
* Mac OS – Mac OS X 10.5.8 and higher versions with a necessity of Intel chip
* Linux – GNU C Library and higher versions

Also Read: Android Overview

Another prerequisite states that you should have the following listed software to start the development of your very first Android application.

* JAVA JDK5 and higher versions
* Android Studio

Well, you must also know that these tools are available free of cost and anyone can download and install them from their official websites. Besides the above 2 requirements, there are other 2 components which are optional but will prove themselves very helpful if you are using Microsoft Windows as your operating system. These components are really useful when you are developing a Java-based mobile application. Both of these components are mentioned below.

* JAVA Development Kit (JDK)
* Android IDEs

Now, let us take a brief look at both of these mentioned components.

JAVA Development Kit (JDK)
If you want to download the latest version of Java Development Kit then visit the official website of Oracle. Here, you need to search for the JAVA SE Downloads. After visiting this page, you will get the instructions to install and configure the JDK in the downloaded files. Follow the given instructions. After you are done with downloading and installing procedure, set the PATH and JAVA_HOME environment variables to java and javac that can help them in referring to the respective directories. Generally, the directories will be java_install_dir/bin and java_install_dir respectively for PATH and JAVA_HOME.


Now, if you are someone who is working on Windows and your JDK file is installed in C:\jdk1.8.0_102 then you need to add the given lines of code in the autoexec.bat file. You will find this file on C:\ drive.

set PATH=C:\jdk1.8.0_102\bin;%PATH%
set JAVA_HOME=C:\jdk1.8.0_102

There is another way to perform these settings. Follow the given instructions.

(right click) My Computer -> (select) Properties -> (select) Advanced -> (select) Environment Variables

Here, you can update the value for PATH and end this process by clicking on OK button.

On the other hand, if you are someone who is working on Linux and the SDK is installed in /usr/local/jdk1.8.0_102 then you will be required to perform a few changes. These changes are needed if you are using the C shell. In such a case, add the following lines of code in the .cshrc file.

setenv PATH /usr/local/jdk1.8.0_102/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.8.0_102

But, in case, if you are using Android Studio then there is no need to mention the path of JDK as this software is capable of locating the path of the installed Java.

Android IDEs (Integrated Development Environments)
There are a number of technologies which helps the developers in the Android application development. These major technologies use popular tools which are given below.

* Android Studio
* Deprecated Eclipse IDE