install Android development environment in the Ubuntu
2013-03-22 11:52
357 查看
1. install JDK(jdk-7u17-linux-i586.tar.gz)(http://www.oracle.com/technetwork/java/javase/downloads/index.html)
mkdir /usr/lib/jdk
cd /usr/lib/jdk
tar -xzvf ~/Downloads/android/jdk-7u17-linux-i586.tar.tar.gz
chmod -R 777 /usr/lib/jdk
vim ~/.bashrc
export JAVA_HOME=/usr/lib/jdk/jdk1.7.0_17
export JRE_HOME=/usr/lib/jdk/jdk1.7.0_17/jre
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
source .bashrc
update-alternatives --install /usr/bin/java java /usr/lib/jdk/jdk1.7.0_17/bin/java 300
update-alternatives --install /usr/bin/javac javac /usr/lib/jdk/jdk1.7.0_17/bin/javac 300
java -version
2. install Eclipse(eclipse-java-juno-SR2-linux-gtk.tar.gz)(http://www.eclipse.org/downloads/)
mkdir ~/android/eclipse
cd ~/android/eclipse
tar -xzvf ~/Downloads/android/eclipse-java-juno-SR2-linux-gtk.tar.gz
eclipse/eclipse
eclipse
3. install ADT Pulgin
// open eclipse until the window view has done.
help --> Install Software New... --> "add..." -->Name:ADT Pulgin Location:https//dl-ssl.google.com/android/eclipse/ --> "Next" --> .... -->done.
4. configuration Android SDK to eclipse
// open eclipse until the window view has done.
// download "android-sdk_r21.1-linux.tgz"
(http://developer.android.com/sdk/index.html) and
copy to "~/Downloads/android"
cd ~/android
tar -xzvf /Downlods/android/android-sdk_r21.1-linux.tgz
Windows-->Reference..-->Android-->Android SDK -->(SDK Path) -->....-->apply-->ok
mkdir /usr/lib/jdk
cd /usr/lib/jdk
tar -xzvf ~/Downloads/android/jdk-7u17-linux-i586.tar.tar.gz
chmod -R 777 /usr/lib/jdk
vim ~/.bashrc
export JAVA_HOME=/usr/lib/jdk/jdk1.7.0_17
export JRE_HOME=/usr/lib/jdk/jdk1.7.0_17/jre
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
source .bashrc
update-alternatives --install /usr/bin/java java /usr/lib/jdk/jdk1.7.0_17/bin/java 300
update-alternatives --install /usr/bin/javac javac /usr/lib/jdk/jdk1.7.0_17/bin/javac 300
java -version
2. install Eclipse(eclipse-java-juno-SR2-linux-gtk.tar.gz)(http://www.eclipse.org/downloads/)
mkdir ~/android/eclipse
cd ~/android/eclipse
tar -xzvf ~/Downloads/android/eclipse-java-juno-SR2-linux-gtk.tar.gz
eclipse/eclipse
eclipse
3. install ADT Pulgin
// open eclipse until the window view has done.
help --> Install Software New... --> "add..." -->Name:ADT Pulgin Location:https//dl-ssl.google.com/android/eclipse/ --> "Next" --> .... -->done.
4. configuration Android SDK to eclipse
// open eclipse until the window view has done.
// download "android-sdk_r21.1-linux.tgz"
(http://developer.android.com/sdk/index.html) and
copy to "~/Downloads/android"
cd ~/android
tar -xzvf /Downlods/android/android-sdk_r21.1-linux.tgz
Windows-->Reference..-->Android-->Android SDK -->(SDK Path) -->....-->apply-->ok
相关文章推荐
- Build the Android work environment in Ubuntu Linux
- Build the Android work environment in Ubuntu Linux
- Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variab
- Install Android SDK in Ubuntu
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- how to build a android environment in ubuntu 15.10
- Setup the development environment of 51-SCM under ubuntu 12.04
- Android Studio Ubuntu ‘tools.jar’ is not in the Android Studio classpath. Please ensure JAVA_HOME
- Install the powerful vim plugin in ubuntu system
- How to install the pycharm in my ubuntu
- Install Android Studio in Ubuntu 16.04 LTS
- install jdk in ubuntu( please notice diffrent verstion and change the name in the configuration)
- How to install an APK file in the Android emulator?
- Howto install Sun Java Runtime Environment (JRE) in Ubuntu 10.04 (Lucid Lynx)
- Java Development Environment in Linux: Install and Configure Weblogic
- 关于APUE(Advanced Programming in the Unix Environment)第三版 代码在ubuntu中的编译运行
- How to install the latest Eclipse in Ubuntu 14+
- Program for Android in C/C++ with the Native Development Kit (if you dare)
- ubuntu 安装 Andorid Studio 错误:Unable to install Android Studio in Ubuntu
- android NDK install and config in ubuntu