EasyManua.ls Logo

Orange Pi Zero 2 - Configure JAVA Environment Variables; Install JDK; Build Android Compilation Environment

Orange Pi Zero 2
58 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
42
THE OFFICIAL ORANGE PI USER'S GUIDE
2) After downloading the android source code, first check whether the MD5
checksum is correct, if not, please download the source code again
test@test:~$ md5sum -c android.tar.gz.md5sum
android.tar.gz: confirm
test@test:~$ md5sum -c longan.tar.gz.md5sum
longan.tar.gz: confirm
3) Then unzip the android source code
a. android: store android-related source code
b. longan: store the source code of the linux kernel and u-boot (not including the
source code of boot0), and other configuration files
test@test:~$ tar -zxf android.tar.gz
test@test:~$ tar -zxf longan.tar.gz
test@test:~$ ls
android longan
Build android compilation environment
1) Install JDK
test@test:~$ sudo add-apt-repository ppa:openjdk-r/ppa
test@test:~$ sudo apt-get update
test@test:~$ sudo apt-get install openjdk-8-jdk
2) Configure JAVA environment variables
a. First determine the installation path of java, generally
test@test:~$ ls /usr/lib/jvm/java-8-openjdk-amd64
ASSEMBLY_EXCEPTION bin docs include THIRD_PARTY_README

Table of Contents