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

来源:互联网 发布:php局域网服务器配置 编辑:程序博客网 时间:2024/06/05 18:27
$ 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'

就可以下載了。

原创粉丝点击