Android源码下载过程记录

因为墙的缘故,对于google相关地址的访问可能存在问题,repo init报错了,我们只需要替换成清华源即可

Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

repo拉取仓库时报"Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle"错误的解决方案_进击的小宇宙-CSDN博客

请完成封面图设置?

源码下载报错:

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-12.0.0_r26
/usr/bin/env: ‘python’: No such file or directory

fatal: cannot get https://gerrit.googlesource.com/git-repo/clone.bundle 

Ubuntu上执行 repo命令下载源码时报了这个错,

原因:repo 每次执行的时候都会去检查更新自己,但是网站被墙了。

解决方法:

在命令中为 repo 设置国内镜像更新地址,在原有命令基础上添加如下命令:

--repo-url=https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

请完成封面图设置?

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-12.0.0_r16
Downloading Repo source from https://gerrit.googlesource.com/git-repo
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 111] Connection refused
fatal: cloning the git-repo repository failed, will remove '.repo/repo'

请完成封面图设置?

请完成封面图设置?

请完成封面图设置?

请完成封面图设置?

请完成封面图设置?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值