1. Ubuntu 12.04 64-bit
2. Download:
1) El JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2) ADT Bundle: http://developer.android.com/sdk/index.html
3) Android-studio: http://developer.android.com/sdk/installing/studio.html
Install and configure JDK:
$Sudo tar xzvf jdk-7u21-linux-x64.tar.gz-C/usr/lib/JVM
$ CD/usr/lib/JVM
$Sudo MV jdk1.7.0 _ 21/Java-7-sun
Move the downloaded ADT and Android-studio to the following directory.):
/Usr/local/Android Directory: Android-studio eclipse SDK
$Vim ~ /. Bashrc
Add the following lines at the end:
Export android_home =/usr/local/android
Export sdk_home =$ {android_home}/SDK
Export java_home =/usr/lib/JVM/Java-7-sun
Export jre_home =$ {java_home}/JRE
Export classpath =. :$ {java_home}/lib :$ {jre_home}/lib
Export path =$ {java_home}/bin :$ {android_home}/eclipse :$ {android_home}/Android-studio/bin :$ {sdk_home}/platform-tools: $ path
Run:
$ Source ~ /. Bashrc
Finally:
$ Sudo apt-Get install ia32-libs
Run eclipse and studio. Sh.
Reference: http://blog.csdn.net/yang_hui1986527/article/details/6677450