Setting Up Eclipse and Android SDK:

ADT(Android Development Tools) plugin for Eclipse IDE provides an environment for developing android applications.The first thing you need to check is the minimum version of Eclipse supported for the latest ADT plugin.You can check the latest version of ADT here: http://developer.android.com/tools/sdk/eclipse-adt.html .

Once you figure out the version of Eclipse you can download it from here: http://www.eclipse.org/downloads/ . You can select the Operating system and version supported(32-bit or 64-bit) based on your requirements.



Installing Eclipse on Linux:
In order to install java on Linux you can either download from here: http://www.java.com/en/download/manual.jsp?locale=en#lin . After you download the .tar.gz package extract it.

sudo tar -xvf <package-name>.tar.gz

sudo mkdir /usr/lib/jvm/

sudo mv ./<extracted folder name> /usr/lib/jvm/jdk1.7.0
 
 
 Now run the following commands:

sudo update-alternatives --install "usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1

sudo update-alternatives --install "usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1

sudo update-alternatives --install "usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1

sudo update-alternatives --config java
 
Alternative way to install Java:
The alternate method would be to use command-line for installation.Run the following command in terminal:

sudo apt-get install openjdk-7-jdk
 
 
 
 
Verify the version of java that you just installed : 


java -version



Downloading and Extracting Eclipse:
Download Eclipse for linux and extract the .tar.gz file to /opt/ directory.


sudo tar -xvf  .tar.gz

sudo mv eclipse /opt/

sudo chmod 777 -R /opt/eclipse
 
 
 Run Eclispe using the following command:
 
 
 /opt/eclipse/./eclipse
 
 
 
For easier access create a .desktop shorcut. Open terminal and type in the following commands: 

cd Desktopgedit eclipse.desktop
 
 
Type the following lines in the text editor and save it: 

[Desktop Entry]
Type=Application
Version=1.0
Name=Eclipse
Comment=IDE
Exec=/opt/eclipse/./eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Categories=GTK;Development;IDE;
StartupNotify=true
 
 
 


That’s it done.

Downloading Android-SDK:

You can find android SDK(SoftwareDevelopmentkit) here: http://developer.android.com/sdk/index.html. Download and extract it.

Installing ADT Plugin:

Open eclipse and click on Help from the menu bar and then select Install New Software. Add Repository and provide the following address for location :

https://dl-ssl.google.com/android/eclipse/