http://androidbiancheng.blogspot.com/2009/12/linuxubuntueclipse-android-sdk.html
//ubuntu 12.04 update
1.download JDK 7 ==> http://www.wikihow.com/Upgrade-Oracle-Java-on-Ubuntu-Linux
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
2.
cd 下載
sudo mkdir /usr/local/java/
sudo -s cp -r jdk-7u9-linux-x64.tar.gz /usr/local/java/
cd /usr/local/java/
sudo -s chmod a+x jdk-7u9-linux-x64.tar.gz
sudo -s tar xvzf jdk-7u9-linux-x64.tar.gz
sudo gedit /etc/profile
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_09/bin/javac" 1
sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_09/bin/javac
. /etc/profile
test
java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
sudo gedit /etc/environment
add
JAVA_HOME=/usr/local/java/jdk1.7.0_09
Failed to get the adb version: Cannot run program “/opt/android-sdk/platform-tools/adb”: error=2
==> sudo apt-get install ia32-libs
Android SDK Manager 下載Android SDK失敗
Failed to fetch URL
==> etc/hosts =>增加
74.125.237.1 dl-ssl.google.com
沒有留言:
張貼留言