Android, repo sync经常失败的解决办法

Android 源代码获得过程中,repo sync经常失败的解决办法:

主要参见:http://www.tonypig.net/?p=9998 ,感谢作者;

1. 修改repo

    将REPO_URL中的git:修改为http:
2. 在你要下载源代码的目录(这里是 Android_SOURCE) 中,运行脚本:
在这里我仅仅是取一个branch。repo的使用细则可以参见 google 的帮助:
@http://android.git.kernel.org/?p=platform/manifest.git;a=shortlog;h=65b15d6ef404b4011b7f78145b168eea5035ca82
3. 第二部成功后,repo会在 Android_SOURCE 目录上 生成一个隐藏的目录.repo; 而其中的 manifest.xml 中指定了需要下载的objects;
#cd .repo
#vi manifest.xml
 
将Fetch…中的git:修改为http:
4, 执行 repo sync

原文地址:https://www.cnblogs.com/thilong/p/2042740.html