Android 7 build feedback

Moderators: Oren.R, Eran.M

pierrelgcb
Posts: 33
Joined: Wed Dec 09, 2015 9:40 am

Android 7 build feedback

Postby pierrelgcb » Wed Jul 19, 2017 8:40 am

Hi Variguys,

I first built Android Nougat N7.1.1_1.0.0 (kernel 4.1.15) from your wiki for VAR-SOM-DUAL. Here are my feedbacks.
http://variwiki.com/index.php?title=VAR-SOM-MX6_Android&release=RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6

var_m_711_100 => "m" should be "n" (not important, works)

§5.5 Apply Variscite's i.MX6 platforms' patches
cd ~/var_m_711_100/m_711_100_build/device (not devices)
variscite/scripts/install.sh (add .sh to install)

§6.3 Build Android for on-SOM eMMC
=== First build failed
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version of java.

Your version is: java version "1.7.0_131" OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2) OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode).
The required version is: "1.8.x"


=== Solution
=== Install OpenJDK 8 in Ubuntu 14.04 & 12.04 LTS
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk

=== Configure openjdk 8
sudo update-alternatives --config java
sudo update-alternatives --config javac

=== Hardware conf
=== I didn't have enought RAM on my building VM (4 Go). I upgraded to 11 Go RAM + 14 Go swap

Potentially, if not enought RAM
=== Error on build (GC overhead limit exceeded. Try increasing heap size with java option...)
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server

Regards, Pierre

varigigi
Posts: 52
Joined: Tue Nov 01, 2016 10:25 am

Re: Android 7 build feedback

Postby varigigi » Wed Jul 19, 2017 9:51 am

Hi Pierre,
thanks for your precious feedback.

All of your suggestion have been integrated in the wiki.

BR
Pier


Return to “Android”

Who is online

Users browsing this forum: No registered users and 2 guests