This article describes how to build an Android development environment on 64-bit Ubuntu.
System: Ubuntu12.04lts
Using ADT Bundle for Linux and jdk1.7 (open JDK also available)
Altogether divided into 3 steps:
1. Configuring the JDK
Installing the Open JDK
$sudo Apt-get Install OPENJDK-7-JDK
Or
Download from Oracle website
Download JDK64-bit version from official website
Unzip the installation
Copy the extracted files to/USR/LIB/JVM with the highest permissions
sudo cp-r ~/jdk1.7//USR/LIB/JVM
(Middle two "/" Not connected, with a space)
modifying environment variables
sudo gedit ~/.profile
At the end, add
Export java_home=/usr/lib/jvm/jdk1.7
Then save the shutdown and update it with source
$ source ~/.profile
Configuring the default JDK version
$ sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk1.7/bin/java 300
$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.7/bin/javac 300
$ sudo update-alternatives--config java
$ sudo update-alternatives--config javac
Confirm that the JDK is installed successfully
$ java-version
If you see the Java version "1.7.XXXX", it means that the installation was successful.
2. Installing ADT Bundle for Linux
Download ADT bundle for Linux from Google's website, which contains the Android SDK and Eclipse, and has already installed ADT.
Unzip to the installation directory when the download is complete.
Perhaps you would also like to:
Open Eclipse
Execute Help--Install New software ...
Click Add ...
In the popup dialog box, fill in the Name:android Developer Tools Update Site, location:http://dl-ssl.google.com/android/eclipse/
Complete
I did this because I found that the site was missing when I updated it, not to install ADT.
3. Installing Ia32-libs
The previous may be similar to the 32-bit Ubuntu installation, but this is what must be done on the 64-bit system, otherwise it will appear (... adb: error=2, no file or directory) such errors. The reason is that Android SDK only 32bit program, need to install ia32-libs, in order to use.
$ sudo apt-get install Ia32-libs
Note: Ia32-libs is larger than