135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lypage.title=Downloading and Building 235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly@jd:body 335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<!-- 5768b82a9dfbdd8504eae2736d283a60a37c7a547Clay Murphy Copyright 2013 The Android Open Source Project 635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly Licensed under the Apache License, Version 2.0 (the "License"); 835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly you may not use this file except in compliance with the License. 935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly You may obtain a copy of the License at 1035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 1135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly http://www.apache.org/licenses/LICENSE-2.0 1235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 1335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly Unless required by applicable law or agreed to in writing, software 1435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly distributed under the License is distributed on an "AS IS" BASIS, 1535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly See the License for the specific language governing permissions and 1735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly limitations under the License. 1835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly--> 1935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<p>The Android build is routinely tested in-house on recent versions of 200b0d9ba8a2fa67b991dea4cdb1d36ded094413f8Jonathan NiederUbuntu LTS (12.04), but most distributions should have the required 2135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lybuild tools available. We welcome reports of successes or failures on other 2235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lydistributions.</p> 2335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 2435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<p>Before you download and build the Android source, ensure your system meets the following requirements:</p> 2535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 2635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<ul> 2735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 2835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li>A Linux or Mac system. It is also possible 2935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly to build Android in a virtual machine on unsupported systems such as Windows. 3035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly If you are running Linux in a virtual machine, you need at 3135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly least 16GB of RAM/swap and 30GB or more of disk space in order to 3235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly build the Android tree. 3335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 3435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 3535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li>A 64-bit environment is required for Gingerbread (2.3.x) and newer versions, including the master 3635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly branch. You can compile older versions on 32-bit systems. 3735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 3835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 3935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li>30GB of free disk space to complete a single build and 4035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly up to 100GB or more for a full set of builds. The source download is approximately 8.5GB in size.</p> 4135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 4235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 4335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li> 4435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly Python 2.6 -- 2.7, which you can download from <a href="http://www.python.org/download/">python.org</a>.</p> 4535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 4635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 4735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li> 4835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly GNU Make 3.81 -- 3.82, which you can download from <a href="http://ftp.gnu.org/gnu/make/">gnu.org</a>,</p> 4935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 5035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 5135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li> 52019d9140dcec91199f2daa9865e581349166cd2cClay Murphy JDK 7 to build the master branch of Android in the <a 536d00f3bfb6b21c9e6b1788868f9b7b3cdfde67bdClay Murphy href="https://android.googlesource.com/">Android Open Source Project 546d00f3bfb6b21c9e6b1788868f9b7b3cdfde67bdClay Murphy (AOSP)</a>; JDK 6 to build Gingerbread through KitKat; JDK 5 for Cupcake through 556d00f3bfb6b21c9e6b1788868f9b7b3cdfde67bdClay Murphy Froyo. See <a href="initializing.html">Initializing a Build Environment</a> 566d00f3bfb6b21c9e6b1788868f9b7b3cdfde67bdClay Murphy for installation instructions by operating system.</p> 5735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 5835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 5935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly <li> 6035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly Git 1.7 or newer. You can find it at <a href="http://git-scm.com/download">git-scm.com</a>.</p> 6135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly </li> 6235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 63768b82a9dfbdd8504eae2736d283a60a37c7a547Clay Murphy</ul> 64