从github检查Android源代码

sty*_*972 6 git android repository android-source

在完成所有这些步骤以查看Android源代码(Gingerbread分支)之后,为了解决编译错误,我决定尝试从不同的源代码获取源代码.

以下是我从GitHub.com存储库中检出源代码所采取的步骤.

我检查了GitHub.com存储库中的repo工具

git clone git://github.com/android/tools_repo.git
Run Code Online (Sandbox Code Playgroud)

在下载的repo脚本文件中,我更改了repo工具的位置,如下所示:

## repo default configuration
##
#REPO_URL='git://android.git.kernel.org/tools/repo.git'
REPO_URL='git://github.com/android/tools_repo.git'
REPO_REV='stable'
Run Code Online (Sandbox Code Playgroud)

在此之后,我使用repo脚本'git wrapper'为源代码创建了存储库.

repo init -u git://github.com/android/platform_manifest.git -b gingerbread
Run Code Online (Sandbox Code Playgroud)

这给了我一个成功的结果; "repo在/ home/my /目录中初始化"

但是,当我尝试时repo sync,我收到以下错误消息:

$ repo sync

Initializing project platform/bionic ...
android.git.kernel.org[0: 149.20.4.77]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
error: Cannot fetch platform/bionic
Run Code Online (Sandbox Code Playgroud)

现在离线android.git.kernel.org的引用在哪里? cat repo|grep kernel.org没有给我什么.

net*_*men 3

在这里您可以找到有关从 github 签出的操作方法。