我正在尝试下载 android 源代码,为此我正在关注 source.android.com 上提供的官方文档,使用命令:-
repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1
或者
repo init -u https://android.googlesource.com/platform/manifest
但我收到以下错误:-
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno -2] Name or service not known
我无法弄清楚我做错了什么!任何铅表示赞赏。
更新
我继续执行以下命令:-
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1
然后执行repo sync
,一切正常,但最后我得到了这个错误:-
100 10.8G 100 10.8G 0 0 259k 0 12:12:36 12:12:36 --:--:-- 895k
remote: Sending approximately 10.88 GiB ...
remote: Counting objects: 46, done
remote: Finding sources: 100% (40/40)
error: RPC failed; result=56, HTTP code = 200 | 915.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
remote: Sending approximately 10.88 GiB ...
remote: Counting objects: 46, done
remote: Finding sources: 100% (40/40)
error: RPC failed; result=56, HTTP code = 200 | 881.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch device/lge/hammerhead-kernel
对此的任何线索表示赞赏!