Android源码编译(1)---硬件及软件要求
2016-08-18 12:48
344 查看
Requirements
IN THIS DOCUMENT
Hardware requirementsSoftware requirements
Operating system
Java Development Kit (JDK)
Key packages
Device binaries
Before you download and build the Android source, ensure your system meets the following requirements. Then see Establishing
a Build Environment for installation instructions by operating system.
Hardware requirements
Your development workstation should meet or exceed these hardware requirements:A 64-bit environment is required for Gingerbread (2.3.x) and newer versions, including the master branch. You can compile older versions on 32-bit systems.
At least 100GB of free disk space for a checkout, 150GB for a single build, and 200GB or more for multiple builds. If you employ ccache, you will need even more space.
If you are running Linux in a virtual machine, you need at least 16GB of RAM/swap.
Software requirements
The Android Open Source Project (AOSP) masterbranch
is traditionally developed and tested on Ubuntu Long Term Support (LTS) releases, but other distributions may be used. See the list below for recommended versions.
You workstation must have the software listed below. See Establishing
a Build Environment for additional required packages and the commands to install them.
Operating system
Android is typically built with a GNU/Linux or Mac OS operating system. It is also possible to build Android in a virtual machine on unsupported systems such as Windows.
GNU/Linux
Android 6.0 (Marshmallow) - AOSP master: Ubuntu 14.04 (Trusty)Android 2.3.x (Gingerbread) - Android 5.x (Lollipop): Ubuntu 12.04 (Precise)
Android 1.5 (Cupcake) - Android 2.2.x (Froyo): Ubuntu 10.04 (Lucid)
Mac OS (Intel/x86)
Android 6.0 (Marshmallow) - AOSP master: Mac OS v10.10 (Yosemite) or later with Xcode 4.5.2 and Command Line ToolsAndroid 5.x (Lollipop): Mac OS v10.8 (Mountain Lion) with Xcode 4.5.2 and Command Line Tools
Android 4.1.x-4.3.x (Jelly Bean) - Android 4.4.x (KitKat): Mac OS v10.6 (Snow Leopard) or Mac OS X v10.7 (Lion) and Xcode 4.2 (Apple's Developer Tools)
Android 1.5 (Cupcake) - Android 4.0.x (Ice Cream Sandwich): Mac OS v10.5 (Leopard) or Mac OS X v10.6 (Snow Leopard) and the Mac OS X v10.5 SDK
Java Development Kit (JDK)
Please note, since there are no available supported OpenJDK 8 packages for Ubuntu 14.04, the Ubuntu 15.04 packages must be installed manually. See JDKfor Ubuntu LTS 14.04 for precise instructions.
The master branch of Android in AOSP: Ubuntu - OpenJDK 8, Mac OS - jdk
8u45 or newer
Android 5.x (Lollipop) - Android 6.0 (Marshmallow): Ubuntu - OpenJDK 7, Mac OS - jdk-7u71-macosx-x64.dmg
Android 2.3.x (Gingerbread) - Android 4.4.x (KitKat): Ubuntu - Java
JDK 6, Mac OS - Java JDK 6
Android 1.5 (Cupcake) - Android 2.2.x (Froyo): Ubuntu - Java JDK 5
Key packages
Python 2.6 -- 2.7 from python.orgGNU Make 3.81 -- 3.82 from gnu.org; Android 3.2.x (Honeycomb) and earlier will need to revert
from make 3.82to avoid build errors
Git 1.7 or newer from git-scm.com
Device binaries
Download previews, factory images, drivers, over-the-air (OTA) updates, and other blobs below. See Obtainingproprietary binaries for additional details.
Preview binaries (blobs) - for AOSP
masterbranch
developmentFactory images - for the supported devices running tagged AOSP release branchesBinary hardware support files - for devices running tagged AOSP release branchesOTA images - for manually updating Nexus devices over the air
相关文章推荐
- Android 源码编译详解【一】:服务器硬件配置及机型推荐-2016/06
- android 源码编译详解【一】:服务器硬件配置及机型推荐-2016/06
- Android 源码编译详解【一】:服务器硬件配置及机型推荐-2016/06
- Android源码剖析之Framwork层后记篇(硬件消息传递、apk管理、输入法框架、编译过程)
- Android预安装软件&adb命令&编译源码
- Android系统源码编译环境搭建(清华镜像,想编译什么版本都可以,只是有JDK和make的版本要求)
- Android源码剖析之Framwork层后记篇(硬件消息传递、apk管理、输入法框架、编译过程)
- Android预安装软件&adb命令&编译源码
- Android预安装软件&adb命令&编译源码
- 如何编译安装源码包软件
- 如何编译安装源码包软件
- Linux操作系统下如何编译安装源码包软件
- 从源码编译安装软件经验 gtk
- Linux 源码编译软件几点排错
- Google开放源码为Android开发提供软件样板
- AMD64位ubuntu9.04下编译Android源码
- 如何编译安装源码包软件
- Linux如何编译安装源码包软件
- Ubuntu 8.04下编译Android源码全过程
- 分享编译Android源码的全过程