安裝 Repo, gerrit

查看 google 指導文檔

https://source.android.google.cn/setup/develop

下載源代碼

#repo init -u https://android.googlesource.com/platform/manifest
Get ssh://gerrit.dangbei.net:29418/repo-git
remote: Counting objects: 74, done
remote: Finding sources: 100% (74/74)
remote: Total 74 (delta 10), reused 74 (delta 10)
Unpacking objects: 100% (74/74), done.
From ssh://gerrit.dangbei.net:29418/repo-git
 * [new branch]      master     -> origin/master
 * [new branch]      stable     -> origin/stable
 * [new tag]         v1.0       -> v1.0
Get https://android.googlesource.com/platform/manifest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:07 --:--:--     0curl: (7) Failed to connect to 2404:6800:4008:c03::52: Network is unreachable
error: Failed to connect to 2404:6800:4008:c07::52: Network is unreachable while accessing https://android.googlesource.com/platform/manifest/info/refs
fatal: HTTP request failed

解決辦法:rm -rf ~/.ssh/config

2、 #repo init -u https://android.googlesource.com/platform/manifest
error: in `init -u https://android.googlesource.com/platform/manifest`: [Errno 2] No such file or directory: '/home/e52620v4/server/google_android/.repo/manifests/.git/HEAD'
error: manifest missing or unreadable -- please run init

解決辦法:更改repo爲google下載的

3、

 #repo init -u https://android.googlesource.com/platform/manifest
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
fatal: cloning the git-repo repository failed, will remove '.repo/repo' 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章