Android Development Environment: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6 as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#l...")
 
No edit summary
Line 17: Line 17:
* HDD : 500 GB Free space
* HDD : 500 GB Free space
* Internet Connectivity
* Internet Connectivity
<span style="color:red">Note: </span>The build process requires about 135GB of free space. Before any build, make sure you have adequate free space available on HDD / SDD
before starting any build. 


<span style="color:red">Note: </span>Do not use other Ubuntu or Debian releases, than the ones recommended above.
<span style="color:red">Note: </span>Do not use other Ubuntu or Debian releases, than the ones recommended above.
Line 45: Line 47:
  $ sudo update-alternatives --config java
  $ sudo update-alternatives --config java
  $ sudo update-alternatives --config javac
  $ sudo update-alternatives --config javac
<span style="color:red">Note: </span>The build process requires about 135GB of free space.

Revision as of 18:16, 18 October 2018

VAR-SOM-MX6 - Android Nougat N7.1.1 Creating Android Development Environment

Host (PC) setup requirements

The host development environment for Android is based on Ubuntu and Debian, please install Ubuntu version 14.04/16.04 64bit LTS http://www.ubuntu.com/download/desktop or Debian 8.4 64bit https://www.debian.org/releases

We recommend to have Physical machine with at least below Hardware Requirements:

  • CPU : Intel / AMD Quad Core or higher CPU cores with base frequency 2.3 Ghz or higher.
  • RAM : you need at least 16GB of RAM
  • SSD(Recommended) : 450 GB

OR

  • HDD : 500 GB Free space
  • Internet Connectivity

Note: The build process requires about 135GB of free space. Before any build, make sure you have adequate free space available on HDD / SDD before starting any build.

Note: Do not use other Ubuntu or Debian releases, than the ones recommended above.

Install required packages on host PC

$ sudo apt-get -y install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib \
libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc \
unzip mtd-utils u-boot-tools lzop liblzo2-2 liblzo2-dev zlib1g-dev liblz-dev uuid uuid-dev android-tools-fsutils bc

Install the OpenJDK

Android Nougat requires OpenJDK 8.

To install it:

$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk


If your Ubuntu version is missing the package (which shouldn't happen), add the PPA repository and run the previous commands again:

$ sudo add-apt-repository ppa:openjdk-r/ppa


Update the default Java version by running:

$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac