Skip to content

Latest commit

 

History

History

Android-4.4.4_r1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

编译环境配置 (官方配置要求)

Ubuntu配置

ubuntu16.04

JDK配置(JDK要求)

Android 7.0 (Nougat) - Android 8.0 (O):Ubuntu - OpenJDK 8;Mac OS - jdk 8u45 或更高版本
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

Make 配置

Android 4.0.x (Ice Cream Sandwich) 及更低版本需要将 make 3.82 还原到较低版本,以避免出现编译错误

git配置

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

python3.6+配置

参见tool/language/python/ubuntu/

配置代理

参见tool/proxy

详细步骤

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir source
cd source
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r1
repo sync
  • 提示配置用户和邮箱时随便配置即可
  • sync过程中有报以下错误
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
platform/bootable/recovery:
remote: Counting objects: 28282, done.
remote: Compressing objects: 100% (1106/1106), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

参考

-1.AOSP 编译和烧写