下载Android 5.1源 [英] Downloading Android 5.1 Source
问题描述
我正在使用Ubuntu 14.04,我只是按照此链接中的每个步骤进行操作>.安装jdk,Git之后,创建工作目录,我想下载Android 5.1最新版本的源代码.
I'm using Ubuntu 14.04 and i just followed each and every step in this link. After installing jdk, Git, creating working directory, i want to download Android 5.1 latest revision of source .
$ repo init -u https://android.googlesource.com/platform/manifest -b
什么是下载5.1的正确命令.您能告诉我源代码的大小吗?
what is the correct command to download 5.1. Can you tell me how much size of the source code is?
推荐答案
说明要求这样做
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
但是使用以下链接将android-4.0.1_r1
替换为您选择的源版本.
But use the following link to replace android-4.0.1_r1
with the source version of your choice.
https://source.android .com/source/build-numbers.html#source-code-tags-and-builds
由于您希望使用最新的5.1,因此在撰写本文时为android-5.1.1_r30
.
Since you want the latest 5.1, that would be android-5.1.1_r30
at the time of this post.
因此,您的命令应为
ANDROID_TARGET=android-5.1.1_r30
repo init -u https://android.googlesource.com/platform/manifest -b $ANDROID_TARGET
这篇关于下载Android 5.1源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!