admin管理员组

文章数量:1530842

  最近一直想下载android的源码看看,但是按照官方的文档下载,遇到了问题。

 在执行的curl http://commondatastorage.googleapis/git-repo-downloads/repo > ~/bin/repo的时候不能下载repo;

在网上查了大量资料,找到了可行的办法:

将  curl http://commondatastorage.googleapis/git-repo-downloads/repo > ~/bin/repo

改成curl http://git-repo.googlecode/files/repo-1.12 > ~/bin/repo ,这样就可以下载repo

将  curl http://commondatastorage.googleapis/git-repo-downloads/repo > ~/bin/repo

改成 curl https://commondatastorage.googleapis/git-repo-downloads/repo > ~/bin/repo ,这样就可以下载repo了。

尝试了上面两种方法都不行!使用下面这个国内资源就可以了

curl https://mirrors.tuna.tsinghua.edu/git/git-repo > ~/bin/repo

可参考下面这个博客:

git repo工具详细使用教程——彻底学会Android repo的使用_大魔王爱学习的博客-CSDN博客_repo工具

本文标签: 源码错误repoGoogle