android studio

sudo apt-add-repository ppa:paolorotolo/android-studio

sudo apt-get update

sudo apt-get install android-studio

login project

download andriod studio

if not install jdk7

if error not run from .zip error ,please try delete directory .gradle

Check if java JDK is installed correctly

dpkg --list | grep -i jdk

if not install JDK

sudo add-apt-repository ppa:webupd8team/java sudo apt-get update && sudo apt-get install oracle-jdk7-installer

After the installation you have enable the jdk

update-alternatives --display java

Check if Ubuntu uses Java JDK 7

java -version

It should show something like this

javac 1.7.0_25

Add JAVA_HOME to environment variable

Edit /etc/environment and add JAVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the file

sudo nano /etc/environment

Append to the end of the file

JAVA_HOME=/usr/lib/jvm/java-7-oracle

for ubuntu 13.04 64bit

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5

If you want to remove oracle JDK

sudo apt-get remove oracle-jdk7-installer

setup android envinronment all

create project