问题描述
我有关于Android源$ C $ C下载,回购/ git的几个问题。
I have a few questions regarding android source code download, repo / git.
此页面说,源码下载大约6GB大小,但是当我下载我的目录大小11GB。我做了什么错?
This page says that The source download is approximately 6GB in size, but when I downloaded my directory size is 11GB. What did I do wrong?
我使用
下载源$ C $ C回购的init -u https://android.googlesource.com/platform/manifest
是否下载源$ C $ C对于所有版本的Android?如果是这样,我没有看到不同的版本不同的目录中。如何检查/列出所有可用的版本?
I downloaded the source code usingrepo init -u https://android.googlesource.com/platform/manifest
Does it download source code for all versions of Android? If so, I don't see separate directories for different versions. How to check/list all available versions?
如果我用了
什么会改变回购的init -u https://android.googlesource.com/platform/manifest -b Android的4.0.1_r1
呢?
And what would have changed if I had usedrepo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
instead?
还有回购分支
输出(无分支)
推荐答案
我可以回答你几个你的问题:
I can answer you for several your questions:
源下载大约6GB大小,但是当我下载我的目录大小为11GB。我做了什么错?
您并没有做错什么。其实这个源没有更新最新信息。现在提供大约11GB,如果你建立他们,他们将需要大约16 GB。
You did nothing wrong. Actually this source is not updated with new information. Now sources about 11Gb and if you build them they will take about 16 Gb.
我使用回购的init -u下载源$ C $ C https://android.googlesource.com/platform/manifest是否下载 来源$ C $ C对于所有版本的Android?如果是这样,我没有看到单独的 目录为不同的版本。
Android的源下的Git版本控制系统。它们是分开的项目的数量。因此,要解决所有这些项目的Android团队创建了一个名为回购的特殊工具。你可以阅读如何使用它这里。
Android sources are under git version control system. They are separated in the number of projects. So to deal with all this project the Android team created a special tool called repo. You can read how to use it here.
和什么会改变,如果我用了回购的init -u https://android.googlesource.com/platform/manifest -b Android的4.0.1_r1 呢?
在第一种情况下,你会用较新版本的Android同步。这个版本并不总是稳定。而在后一种情况下,在切换到分配给一个稳定的版本的标记。举例来说,我想现在是最新版本是4.0.4。所以在第一种情况下,你会下载这个最新版本(正在开发,实际上开发者发布他们的code到这个版本),而在后一种情况下,你会下载4.0.1版本。
In the first case you'll sync with the more recent version of Android. This version is not always stable. While in the latter case you switch to the tag that is assigned to a stable version. For instance, I guess now is the more recent version is 4.0.4... So in the first case you'll download this more recent version (that are under development and actually developers post their code to this version), while in the latter case you will download 4.0.1 version.
这篇关于Android源$ C $ C下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!