page.title=Host System Setup pdk.version=1.0 doc.type=porting @jd:body
This section provides instructions on how to configure your host system to build Android for mobile devices. While Android is designed as host-environment agnostic, it has been tested and is known to work on the following Linux operating system; Ubuntu 6.06 (Dapper), 7.10 (Gutsy), and 8.04. Cygwin is not recommended.
Android requires the following system packages:
On a clean Dapper system, type the following:
% sudo apt-get install flex bison gperf libesd0-dev libwxgtk2.6-dev zlib1g-dev build-essential
This snippet includes an artificial line break to maintain a print-friendly document.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free license. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. # Line commented out by installer because it failed to verify: deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe # Line commented out by installer because it failed to verify: deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe # Line commented out by installer because it failed to verify: deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe # Line commented out by installer because it failed to verify: deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
% sudo apt-get install flex bison gperf libesd0-dev libwxgtk2.6-dev zlib1g-dev build-essentialThis snippet includes an artificial line break to maintain a print-friendly document.
Install the X11 development environment with the following commands:
% sudo apt-get install x-dev % sudo apt-get install libx11-dev % sudo apt-get install libncurses5-dev
On a clean system, type the following:
% sudo apt-get install flex bison gperf libesd0-dev libwxgtk2.6-dev zlib1g-dev build-essential % sudo apt-get install x-dev % sudo apt-get install libx11-dev % sudo apt-get install libncurses5-dev % sudo apt-get install sun-java5-jdk
Android source code includes a hard dependency on the Java Developer Kit (JDK) 5.0 Update 12 or greater. The specific file name of the Update 12 package is jdk-1_5_0_12-linux-i586.bin
. To download this version of the Java JDK:
Once you have cleanly installed the JDK, modify your PATH environment variable to include <jdk-install-dir>/jdk1.5.0_12/bin
at its beginning so that Dapper will use the correct installation.
Ubuntu 7.10
An alternative method to quickly install Java is to enable multiverse repo in /etc/apt/sources.list
and then execute:
% sudo apt-get install sun-java5-jdk