android.git.kernel.org:名称或服务未知

时间:2014-01-31 01:49:22

标签: android git repository

我正在下载AOSP(针对nexus 5的CyanogenMod)。但是git.kernel.org没有响应。我有什么问题吗?

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Getting repo ...
   from git://android.git.kernel.org/tools/repo.git
fatal: unable to connect to android.git.kernel.org:
android.git.kernel.org: Name or service not known

2 个答案:

答案 0 :(得分:3)

对于下载android源代码我建议请去打击

Git:Android源代码库


<强> 1。 https://android.googlesource.com/

<强> 2。 https://github.com/android

或者如果你想在线浏览代码

第3。 http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/


从第一个链接我以这种方式查看了Camera源代码

Git Command:

git clone https://android.googlesource.com/name

name =要克隆的特定目录,对于相机来说 name = platform / hardware / qcom / camera

所以例如:

  

Ramdhans-MacBook-Pro:相机ramdhanc $ git clone   https://android.googlesource.com/platform/hardware/qcom/camera

Android相机源代码在我的机器上。

答案 1 :(得分:1)

您的Repo启动器脚本(可以使用which repo找到)是古老的,需要更新。按照http://source.android.com/source/downloading.html上的说明获取新的副本。

请注意,几个小时前发布了新版本的脚本,并且在编写时页面上列出的SHA-1校验和不包括v1.21,这是您下载时的目的脚本。