Install Android Studio to Start Writing Android App

 Install Java Development Kit
 Setting Path Variable
 Install Android Studio

In this article I will explain how to configure Java and install Android Studio. This is not a difficult task to do. It is just like any other software installations. But there are teeny tiny extra steps too. So if you are not familiar with them these explanations can guide you for setting up things easily. So lets start.

As you already know Android apps are based on Java and Android Studio is also developed with Java. So first of all we need to install Java Development Kit (JDK). We also need the latest version of Android Studio. Here I’m using Windows operating system. So you can download latest JDK and Android Studio from below links.

Android Studio:


In case of Android Studio you must download the bundle which includes Android SDK. That will be the recommended version and will be around 1.6 GB in size. And in case of JDK there will be four sections. First two will be the latest versions and the next will be their respective demos and samples. You should download the latest version which will have the biggest update number (8u101, 8u102 etc.). Accept the license agreement and download the version which corresponds to your computer architecture (x86 – 32 bit or x64 – 64 bit). If you are not sure about this you can check your “My Computer” or “This PC” properties.

Now you will have two files like this:

Android Studio JDK Setup Files

Install Java Development Kit

Its just a “Next Next Finish” process.

Java JDK Installation

During the installation it will also install JRE (Java Runtime Environment) which is used for running Java apps. Just keep all the paths and settings as default.

Java Install Path

After it is completed close the setup. Then press Win + R. This will bring Run Command box. Type “cmd” and press Enter. This will show the Command Prompt. Type “javac” in there and press Enter. Now check what is printed. If it is printed something like below then do Step 2. Otherwise skip to Step 3.

No Javac Error

Setting Path Variable

Path variable is a setting inside Windows that keeps list of folders in which commands like “javac” exists. Softwares run such commands with the help of this variable. When we tried to execute “javac” in the previous step and we got the message as that command is not recognized. That is because the folder containing the javac command is not added to the Path variable. In normal situations this is done by the Java installer itself automatically. But sometime it fails to do so. In that case we need to do this manually.

To do this, first find the folder where the Java is installed. It will be inside the Program Files folder. Goto that folder and you will find a “jdk” folder, inside it there will be a “bin” folder. The commands are placed inside this bin folder. So we need to add this folder to Path variable. So click on the address bar to see the path of that folder.

Java Bin Folder

Now copy it.

Copy Path of JDK

Now open start menu and search for “environment”. It will show you two options like below. Choose the one for system.

Edit Environment Variables

This will open the System Properties dialog. There will be a button at the bottom with label “Environment Variables”. Click on it.

System Advanced Properties

This will open Environment Variable dialog. In the below list you can find Path variable. Double click on it to edit it.

Environment Variables Windows

This will show you the present Path variable. In Windows 10 this may look different with a more simplified UI. You can just click on Add and give the path copied in there. But in all other versions it will show simple name and value text boxes. To add one more path to it first goto the end of that value line and put a semicolon “;” there. Then paste the path we copied from the previous step. So it will look something like this:

Edit Path Variable

Click on OK on all dialogs and close it. Now try the “javac” command again in command prompt. It will show something like this:

Javac JDK

Perfect! Now move on to next step.

Install Android Studio

During installation of Android Studio I recommend to disconnect Internet because setup may ask to update/install some components. If you want to update everything to the latest versions you may leave it connected. It will take some time to update things. First of all open the setup file. Keep everything default. Lets install Android Virtual Device (For testing) and Android SDK along with it.

Android Studio Install Checklist

Now it will ask for locations. It is better to keep it as default. If prefer to change it make sure you apply them in next steps too.

Android Studio Install Path

After installations open Android Studio. It will show whether you should import settings from previous installation. Since we are installing for the first time chose the second option and press OK.

Android Studio Install Import Settings

During the setup it will ask for the install type. Just keep it as Standard.

Android Studio Install Type

Next thing you will see is the SDK Components Setup. If you have connected Internet this list might be a little bit bigger than mine. You can enable all of them. HAXM is a tool from Intel to speed up the Android Emulator (Virtual Device). To enable this you will also need to enable Virtualization option in your BIOS. It is optional.

Android Studio Install Components

Below that there is field to select the SDK location. Browse and select the SDK folder you chose while starting the installation.

Android SDK Path

Now proceed with the setup and finish it. Thats it. Next time you open Android Studio it will show you startup window. Play with it..

To be continued..