Centos 6/RHEL install AndroidSDK (Existing Eclipse)

If you are using an existing Eclipse installation and intend working with Android then the new ADT Bundle which comes with Eclipse attached to it is superfluous. The standalone version offers a little more control over what gets added to it. If this is the case then you will just need the Android SDK as originally supplied. Using this with an existing Eclipse installation is a fairly straightforward procedure, see the quick guide below.

First make sure you have the Sun JDK and Eclipse installed and then proceed to download the Android SDK. DO NOT get the bundle, go further down the page to 'use an existing ide' and open up the accordian to get to the download link for the SDK-Tools for Linux.

Once downloaded open a terminal and use root

$ sudo su

# cd /usr/local

# tar xvf /home/<user_name>/<android-sdk-file.tgz

This should give you an android-sdk-linux folder in /usr/local.

# chmod 755 android-sdk-linux                set permissions

Now open up Eclipse and go to Window > Preferences > Android

Browse to the android-sdk-linux installation path to set it in Eclipse. Click Apply and OK.

Now go to the Help menu and click Install New Software.

In the 'Work with' drop down list enter the following URL

https://dl-ssl.google.com/android/eclipse/ and put 'Android' in the title box.

This is to facilitate the installation of any extra packages which you may require in future. Check the remaining boxes.

You will need to run the SDK manager and install Platform Tools to complete the initial setup.

This process is prone to errors but it gets there in the end.

Once the platform tools has been successfully installed then you will need to select one or more platform versions to work with.

If you have added the path as above then just run

$ android                          

To view the dialogue box, or click on the icon in Eclipse.

Add your desired platform versions to continue.

Labels: , ,