

- #PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE HOW TO#
- #PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE ANDROID#
- #PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE SOFTWARE#
- #PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE PC#
- #PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE ZIP#
NOTE: If you wish to build for another device change the codename references from smultron to your codename of choice (i.e. Setup the environment & prepare the device-specific code. Get the prebuilts cd ~/android/system/vendor/cm build/envsetup.shĭownload some commits from LineageOS gerrit which are not accepted yet ln -s vendor/extra/updates.sh updates.sh Get the required local manifest mkdir -p ~/android/system/.repo/local_manifests Repo init -u git:///LineageOS/android.git -b cm-11.0

Initialize the LineageOS source repositoryĮnter the following to initialize the repository: cd ~/android/system/ If have already downloaded the sources and set up your environment continue here. You only need to do these steps the first time you build. The following steps describe the needed steps to compile LineageOS 11 from source. Remember to adjust the commands in this guide accordingly to reflect your folder configuration. NOTE: If you plan to build different versions of CyanogenMod/LineageOS/AOSP I'd suggest to make different folders for each, i.e ~/android/cm-11/ and ~/android/aosp-lp/ respectively. To create them type the following commands: mkdir -p ~/bin

You will need to set up some directories in your build environment. It is also possible to have multiple Java versions installed and switch between them. Consider installing it instead, if you plan to build CyanogenMod/LineageOS 11 only. Officially OpenJDK 6 is needed for CyanogenMod/LineageOS 11. NOTE 2: OpenJDK 7 is not officially supported when building CM11 but compiles it just fine.
#PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE HOW TO#
Tutorial on how to install openjdk on Ubuntu 16.04 included below. Just make sure you install OpenJDK 7 and not Sun Java 7. This issue is quite common and you will find many posts about how to solve this on the internet.
#PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE SOFTWARE#
NOTE: If the Java 1.7 packages openjdk-7-jdkand openjdk-7-jre fail to download you will have to grab them from another software repository. The sudo upfront means that you are going to be running the command as "superuser" or admin. Zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-devįor Ubuntu 15.10 (wily) and newer, substitute: lib32readline-gplv2-dev → lib32readline6-devįor Ubuntu 16.04 (xenial) and newer, substitute (additionally see java notes below): libwxgtk2.8-dev → libwxgtk3.0-devĪn example to install a package would look like this: sudo apt-get install lzop

#PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE ZIP#
Openjdk-7-jre phablet-tools pngcrush schedtool squashfs-tools xsltproc zip Libsdl1.2-dev libwxgtk2.8-dev maven libxml2 libxml2-utils lzop openjdk-7-jdk The following packages are needed: bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev A fast and common way to do this is by using the Linux Terminal and typing the apt-get install command. You can install these using the package manager of your choice. Several "build packages" are needed to build CyanogenMod/LineageOS. If you already installed the build packages you are set to compile the Android/CyanogenMod/LineageOS version of your liking.
#PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE ANDROID#
NOTE 2: I recommend installing the Android SDK which includes many useful tools such as adb and fastboot. NOTE: I won't cover the necessary steps to set up a Linux environment, there are plenty of guides for this on the internet.
#PACKAGE OPENJDK 7 JRE HAS NO INSTALLATION CANDIDATE PC#
You can either install a Linux distribution such as Ubuntu on your PC or set up a Virtual Machine (VM) on your Windows PC and have the VM run a Linux distribution. You will be building the ROM using Linux.
