Android源$ C ​​$ C下载 [英] Android source code download

查看:117
本文介绍了Android源$ C ​​$ C下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有关于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对于所有版本的Andr​​oid?如果是这样,我没有看到不同的版本不同的目录中。如何检查/列出所有可用的版本?

I downloaded the source code using
repo 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 used
repo 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。我做了什么错?

The source download is approximately 6GB in size, but when I downloaded my directory size is 11GB. What did I do wrong?

您并没有做错什么。其实这个源没有更新最新信息。现在提供大约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   <一href="https://android.googlesource.com/platform/manifest">https://android.googlesource.com/platform/manifest是否下载   来源$ C ​​$ C对于所有版本的Andr​​oid?如果是这样,我没有看到单独的   目录为不同的版本。

I downloaded the source code using repo 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.

Android的源下的Git版本控制系统。它们是分开的项目的数量。因此,要解决所有这些项目的Andr​​oid团队创建了一个名为回购的特殊工具。你可以阅读如何使用它这里

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   <一href="https://android.googlesource.com/platform/manifest">https://android.googlesource.com/platform/manifest -b Android的4.0.1_r1   呢?

And what would have changed if I had used repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 instead?

在第一种情况下,你会用较新版本的Andr​​oid同步。这个版本并不总是稳定。而在后一种情况下,在切换到分配给一个稳定的版本的标记。举例来说,我想现在是最新版本是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下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆