您的位置:首页 > 移动开发 > Android开发

下載android source code遇到 android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused解決方法

2012-10-18 15:50 447 查看
$ repo init -u https://android.googlesource.com/platform/manifest
Getting repo ...

   from git://android.git.kernel.org/tools/repo.git

android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)

遇到這個問題時,是因為from git://android.git.kernel.org/tools/repo.git己經沒有這個目錄了。。google改變了repo.git的目錄地址

打開~/bin/repo

將REPO_URL='git://android.git.kernel.org/tools/repo.git'

修改為:REPO_URL='https://android.googlesource.com/tools/repo.git'

就可以下載了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android git socket url google
相关文章推荐