[Android] Ubuntu 12.04 LTS 에서 Android Studio 설치

1. Install Java JDK 7

$tar xzvf ~/Downloads/jdk-7u21-linux-x64.tar.gz sudo mv jdk1.7.0_21/ /usr/lib/jvm/
sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_21/bin/java 1
sudo update-alternatives –install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_21/bin/javac 1
sudo update-alternatives –install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_21/bin/javaws 1
sudo update-alternatives –config java
sudo update-alternatives –config javaws

java -version 확인하여 1.7 인지 확인.
java version “1.7.0_21”
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

Read more: http://www.cnx-software.com/2013/05/16/installing-android-studio-ide-in-ubuntu-hello-world-application/#ixzz3PPfveKmf

2. JAVA 환경 설정

JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21
CLASSPATH=JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21/lib
PATH=$PATH:/usr/lib/jvm/jdk1.7.0_21/bin

3. Android studio 압축해제

– proxy를 사용할 경우  “Fetching android sdk component information” 에서 넘어가지 않는 문제 발생 : idea.properties 파일의 마지막에 “disable.android.first.run=true”  추가하면 넘어감.

4. gradle, JDK, SDK의 path 설정

5. SDK-Manager에서 툴 설치

[Android] Ubuntu 12.04 LTS 에서 Android Studio 설치