Android SDK Installation

Android the most popular software for mobile devices with wide range of support from different mobile manufacturers. Android applications are written in the Java programming language.
Before we can begin developing an Android application first, we need to prepare our development system and make sure we meet the System Requirements for Android Software Development Kit.

The Java Development Kit (JDK) is necessary for us to develop an Android application. For those who uses Ubuntu Linux here is how you install java development kit.

In this article we will be using Eclipse IDE for Java Developers. On how to install Eclipse IDE for Java you can find it here.

Second is to install the Android SDK startup package. Get the latest version of the Android SDK from the Android SDK download page Its only include the core SDK tools, which we can use to download the rest of the components. After we have downloaded the .zip or .tgz package, unpacked it to preferred location.

$ mv /greatxam/andriod-sdk_r07-mac_x86 /usr/lib/android

Optionally, we can add the location of the Android SDK’s tools/ to our environment variable, to easily access the tools. For Linux, edit ~/.bashrc or ~/.bash_profile. For Mac OS X, look .bash_profile in home directory. If not exist, we can create by entering these commands.

$ ls -a
$ touch .bash_profile
$ open -e .bash_profile

Add the path of our Android tools in the .bash_profile file with line.
$ export PATH=${PATH}:/usr/lib/android/tools

To add or update our SDK Components that we need we have to launch the Android SDK and AVD Manager.
From the Terminal, execute the commands:
$ cd /tools
$ android

or only android, if you configure your bash profile.
$ android

The third step is to add the Android Development Tool (ADT) plugin to Eclipse IDE. Eclipse -> Help -> Install New Software and click Add.

In the Add Repository dialog, enter “Android” for the Name. And for the Location, we can either use the URLhttps://dl-ssl.google.com/android/eclipse/” to download directly.

Or we can manually download the ADT Plugin file ADT-0.9.9.zip and click archive to locate the downloaded unpack file.

Click all the Development Tools we need to install and click Next.

Click Next again.

Accept the terms of the license agreements and click Finish.

Installation is now on progress, and then the Security Warning will pop-up, just click OK button.

Now, the plugin installation is complete. We need to restart the Eclipse Application.

We aren’t done yet. On the second part of Android Installation, we will discuss how to add Android Platforms and to configure the ADT plugin for Eclipse.