Friday, 26 November 2010

Android - install SDK on eclipse

Updated on 23st March, 2012

In order to develop applications for Android, the Android SDK should be installed in the computer. There different SDKs for different Operation Systems (Windows, Linux and Mac OS).

Although this SDK could be used alone, only with the command line, it is very recommended to used it with the IDE (Integrated Development Environment). For this reason, the Android SDK has been designed to be runnable in the one of the most flexibles IDEs: Eclipse.

This guide will shows you step by step how to download and install the Android SDK, and configure it to have it integrated with Eclipse.

1. Install the Java virtual machine if you don't have it installed yet
Download the Java Virtual Machine from the official web page

2. Download and install eclipse.
Follow the step by step guide

3. Download the SDK from Google
Download the Zip file (not exe)

4. Install the plug-in
4.1 Decompress the SDK.

4.2 Go to the directory of eclipse and doble click on "eclipse" to launch it.
4.3 Once in eclipse, go to help -> install new software

4.4 In the first edit bar (Work with:), copy and paste this address:

4.5 Select developer tools and press on Next

4.6. Press on Next in the following screen

4.7 Check "I accept the terms of the license agreement" and press on Finish

Eclipse will start download and install the software

4.8 When the warning appears, press on ok

4.9 Restart your eclipse

5. Choose the SDK
5.1 Once eclipse has been restarted, choose the directory where you have downloaded the SDK and click on next

5.2 Choose send usage statistics to Google or not. Press on Finish.

5.3 You will see the SDK Platform Tools missing warning. Don't worry and click on OK.

6. Install AVD
6.1 Go to Window -> Android SDK Manager

The Android SDK Manager will connect to internet to refresh the Software list.

6.2 You must choose the "Android SDK Platform-tools".
Now choose any version of Android that you consider that you are going to work with. My recommendation is choose all the version of Android 2.X and the new versions of SDK (Android 4.X for now). The versions 3.X are only for tablets. At least that you are absolutely sure that you are going to work with tablets, you don't need to install them.

If you don't really know what to install, you might see the actual versions distributions here:

Don't worry too much about it now. You can always come back later and install new softwares.

6.3 Once the software has been selected, choose "Install N packages"

6.4 For each one of the packages, it will ask you to accept or reject its installation. You can either accept them one by one or just choose on "Accept All" and click on "Install".

Now it will start download and install packages. This could take several minutes. So, be patient.

This is how does it looks like when all the packages have been installed


No comments:

Post a Comment