安装 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' 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

flyinng

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值