检查从github上Android源 [英] Checking out Android source from github

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

问题描述

在经历了所有这些步骤,以检查出的Andr​​oid源$ C ​​$ C(姜饼分支),只来编译错误,我决定尝试从不同来源获取源$ C ​​$ C

After going through all of these steps to check out the Android source code (Gingerbread branch), only to come to a compile error, I have decided to try to get the source code from a different source.

下面是我已经从GitHub.com库中检出源$ C ​​$ c中的步骤。

Here are the steps that I have taken to checkout the source code from the GitHub.com repository.

我检查了回购工具从GitHub.com库

I checked out the repo tool from the GitHub.com repository

git clone git://github.com/android/tools_repo.git

在里面下载的回购脚本文件,我改变了回购工具的位置如下:

Inside the repo script file that was downloaded, I changed the location of the repo tool as follows:

## 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'

在此,我创建了存储库使用回购脚本'git的包装源$ C ​​$ C。

After this, I created the repository for the source code using the repo script 'git wrapper'.

repo init -u git://github.com/android/platform_manifest.git -b gingerbread

这给了我成功的结果; 在/ home回购初始化/我的/目录

Which gave me a successful results; "repo initialized in /home/my/directory"

然而,当我尝试回购同步,我收到以下错误信息:

However, when I try to repo sync, I get the following error message:

$ 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

是引用现已下线android.git.kernel.org在哪里? 猫回购。| grep的kernel.org 给我什么

推荐答案

这里你可以找到从github上检查出的HOWTO。

Here you can find the howto on checking out from github.

这篇关于检查从github上Android源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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