最近一直想下载android的源码看看,但是按照官方的文档下载,遇到了问题。
在执行的curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo的时候不能下载repo;在网上查了大量资料,找到了可行的办法,将 curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo 改成curl http://git-repo.googlecode.com/files/repo-1.12 > ~/bin/repo ,这样就可以下载repo了。
参考博客:http://www.myexception.cn/android/1497390.html