May 2017
Beginner to intermediate
470 pages
10h 49m
English
We will install both Open JDK 7 and 8 so we can build both Android 6 and 7 in our build environment.
To build Android API level 23, we need to install OpenJDK 7. We can execute the following commands from the Linux console to install OpenJDK 7:
$ sudo apt-get update$ sudo apt-get install openjdk-7-jdk
For Android 7, we need to use OpenJDK 8 to build. There are no available supported OpenJDK 8 packages for Ubuntu 14.04 yet, but the Ubuntu 15.04 OpenJDK 8 packages have been used successfully with Ubuntu 14.04. We need to install OpenJDK 8 on Ubuntu 14.04 using the following instructions.
Download the .deb packages for 64-bit architecture from archive.ubuntu.com:
openjdk-8-jre-headless_8u45-b14-1_amd64.deb with ...
Read now
Unlock full access