How to Install Android on Ubuntu Linux With Eclipse Ide

This document will prepare an overview of the steps you will take to
install and configure Android on your Ubuntu Linux system. You must have
Oracle Java JDK or OpenJDK on your system before installing Android
SDK. OpenJDK (aka Open Java Development Kit) is a free and open source
implementation of the Java programming language Moreover, you will learn
how to:
- Prepare your development environment and ensure it meets the system requirements.
- Install the Android Software Development Kit (SDK)s
- Download and Configure the Eclipse Integrated Development Environment (IDE)
- Install the Android Development Tool (ADT) Plugin for Eclipse IDE
- Add Android platforms and other components to your SDK
- Create your Android Virtual Device (AVD)
Method 1 : Prepare your Development Environment
-
1
Prepare your Ubuntu Linux development environment and ensure it meets the system requirements.
First, boot up Ubuntu Linux,make sure you have an implementation of the
Java JDK installed on your system, whether it is OpenJDK or Oracle Java
JDK, which lays the foundation for the Android SDK. If you don't have
the Java JDK installed on your system please install it, you can obtain
the Oracle Java JDK from Download the Oracle Java JDK,for more information on:
-
How to Install Oracle Java on Ubuntu Linux or to install the OpenJDK and OpenJRE open up a terminal on your system and run the following commands
-
Type/Copy/Paste: sudo apt-get install openjdk-7-jdk
- This command installs OpenJDK on your system
-
Type/Copy/Paste: sudo apt-get install openjdk-7-jre
- this command installs OpenJDK JRE( Java Runtime Environment ) on your system
- You have choice between installing OpenJDK or installing Oracle Java. I strongly recommend installing Oracle Java because it is usually the most well maintained and up to date version of Java.
-
2
If you are running a 64-bit distribution of Android SDK on your development machine, you need to install the ia32-libs:
-
Type/Copy/Paste: sudo apt-get install ia32-libs
- This command installs additional libraries needed for development with the Android SDK
-
Type/Copy/Paste: javac -version
- this command checks for the Java JDK on your system:
- It should respond back with:
- javac 1.7.0
- or something very similiar
-
Type/Copy/Paste: java -version
- this command checks for the Java JRE ( Java Runtine Environment ) on your system