repo init time out 解决方法

来源:互联网 发布:淘宝笔记本主板 编辑:程序博客网 时间:2024/05/19 12:11

Step 1. 编辑 /home/username/bin/repo文件

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

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


    Step 2. 运行新的命令

$ repo init -u http://android.git.kernel.org/platform/manifest.git -b gingerbread


  Step 3. 修改文件.repo/manifests/default.xml

将   fetch="git://android.git.kernel.org/"

改成fetch="http://android.git.kernel.org/"


    Step 4. 运行命令

repo sync