Android 基础知识 -- Linux环境搭建

Android 开发工具下载网站:http://www.androiddevtools.cn/

1 JDK

1.1 下载JDK,解压后放到/usr/lib/jvm/目录

sudo mv jdk1.7.0_71 /usr/lib/jvm/

1.2 配置环境变量

sudo gedit /etc/profile


# JDK
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_71
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:

2 ADT

下载adt-bundle,解压后配置环境变量

sudo gedit /etc/profile

# ANDROID
export ANDROID_SDK=/home/derrick/software/java/ADT/adt-bundle-linux-x86_64-20140702/sdk
export PATH=$PATH:$ANDROID_SDK$/tools:$ANDROID_SDK$/platform-tools
#export ANDROID_SDK_HOME=/home/cmm/avds

3 NDK

下载adt-bundle,解压后配置环境变量,

sudo gedit /etc/profile

# NDK
export NDK_HOME=/home/derrick/software/java/android-ndk-r9d
export PATH=$PATH:$NDK_HOME

 

posted @ 2016-12-20 17:51  农民子弟  阅读(129)  评论(0编辑  收藏  举报