Orange Pi User Manual
Android Compilation Environment Construction
III.
1.Download SDK compression package
Take OrangePi-RK3399_Android6.0_V1.0_2017_0720.tgz as am example, after get the original
compression package:
mkdir OrangePi-rk3399
tar xvf OrangePi-rk3399_Android6.0_V1.0_2017_0720.tgz -C OrangePi-rk3399
cd OrangePi-rk3399
2.Construct Compilation Environment
It could also refer to Google file: http://source.android.com/source/initializing.html
Install JDK
Compilation of Android6.0 is based on JAVA7, it needs to first install OpenJDK before compilation.
Command for installing:
sudo apt-get install openjdk-7-jdk
Configure environment variable of JAVA, here is the path for installation:
/usr/lib/jvm/java-7-openjdk-amd64
It could configure on the terminal with the following command:
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
Install Software Package
For Ubuntu12.04:
www.orangepi.org
Shenzhen Xunlong Software Co., Ltd.
9
www.xunlong.tv