Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 1 | page.title=Downloading and Building |
| 2 | @jd:body |
| 3 | |
| 4 | <!-- |
Clay Murphy | c79a20f | 2014-12-10 09:59:48 -0800 | [diff] [blame] | 5 | Copyright 2014 The Android Open Source Project |
Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 6 | |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | --> |
| 19 | <p>The Android build is routinely tested in-house on recent versions of |
Clay Murphy | d95a71f | 2015-02-24 11:06:04 -0800 | [diff] [blame] | 20 | Ubuntu LTS (14.04), but most distributions should have the required |
Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 21 | build tools available. We welcome reports of successes or failures on other |
| 22 | distributions.</p> |
| 23 | |
| 24 | <p>Before you download and build the Android source, ensure your system meets the following requirements:</p> |
| 25 | |
| 26 | <ul> |
| 27 | |
Collin El-Hossari | ba472e9 | 2015-02-03 16:44:00 -0800 | [diff] [blame] | 28 | <li>A Linux or Mac OS system. It is also possible |
Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 29 | to build Android in a virtual machine on unsupported systems such as Windows. |
| 30 | If you are running Linux in a virtual machine, you need at |
Clay Murphy | 2de21e8 | 2014-12-15 16:42:47 -0800 | [diff] [blame] | 31 | least 16GB of RAM/swap and 50GB or more of disk space in order to |
| 32 | build the Android tree. See disk size requirements below. |
Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 33 | </li> |
| 34 | |
| 35 | <li>A 64-bit environment is required for Gingerbread (2.3.x) and newer versions, including the master |
| 36 | branch. You can compile older versions on 32-bit systems. |
| 37 | </li> |
| 38 | |
Clay Murphy | c79a20f | 2014-12-10 09:59:48 -0800 | [diff] [blame] | 39 | <li>At least 50GB of free disk space for a checkout, 100GB for a single |
Clay Murphy | 22a2604 | 2014-12-11 15:57:30 -0800 | [diff] [blame] | 40 | build, and 150GB or more for multiple builds. If you employ ccache, you will |
| 41 | need even more space.</p> |
Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 42 | </li> |
| 43 | |
| 44 | <li> |
| 45 | Python 2.6 -- 2.7, which you can download from <a href="http://www.python.org/download/">python.org</a>.</p> |
| 46 | </li> |
| 47 | |
| 48 | <li> |
| 49 | GNU Make 3.81 -- 3.82, which you can download from <a href="http://ftp.gnu.org/gnu/make/">gnu.org</a>,</p> |
| 50 | </li> |
| 51 | |
| 52 | <li> |
Clay Murphy | 019d914 | 2014-05-06 14:22:54 -0700 | [diff] [blame] | 53 | JDK 7 to build the master branch of Android in the <a |
Clay Murphy | 6d00f3b | 2014-03-26 17:39:24 -0700 | [diff] [blame] | 54 | href="https://android.googlesource.com/">Android Open Source Project |
| 55 | (AOSP)</a>; JDK 6 to build Gingerbread through KitKat; JDK 5 for Cupcake through |
| 56 | Froyo. See <a href="initializing.html">Initializing a Build Environment</a> |
| 57 | for installation instructions by operating system.</p> |
Robert Ly | 35f2fda | 2013-01-29 16:27:05 -0800 | [diff] [blame] | 58 | </li> |
| 59 | |
| 60 | <li> |
| 61 | Git 1.7 or newer. You can find it at <a href="http://git-scm.com/download">git-scm.com</a>.</p> |
| 62 | </li> |
| 63 | |
Clay Murphy | 768b82a | 2013-11-12 11:32:41 -0800 | [diff] [blame] | 64 | </ul> |