比如运行命令如下,今天使用了一个脚本跑了一天,也没有下下来,这个是不是服务器那边有问题啊,还是我的机器有问题,caoguang@caoguang-Aspire-4738G:~/WORKING_DIRECTORY$ ./reposync.bash
“======start repo sync======”
Fetching projects: 2% (5/221) Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out> 脚本内容为
#!/bin/bash
echo “======start repo sync======”
repo sync
while [ $? = 1 ]; do
echo “======sync failed, re-sync again======”
sleep 3
repo sync
done
“======start repo sync======”
Fetching projects: 2% (5/221) Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/caoguang/WORKING_DIRECTORY/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out> 脚本内容为
#!/bin/bash
echo “======start repo sync======”
repo sync
while [ $? = 1 ]; do
echo “======sync failed, re-sync again======”
sleep 3
repo sync
done
解决方案 »
- android sdk 版本问题
- 关于fragment的问题
- 如何用listview显示sqlite里的数据?
- WebView 访问wap网站?
- 创建工程时,Build Target中的Google APIs有什么特别的吗?
- android 4.3 BLE 经常性的发现不了服务
- listview的getView里面返回LinearLayout,为何报错了?
- listview下拉直接置顶,上拉正常,请各位大神帮忙看一下
- 想从android4.0平台换成android4.1,重新下了android-sdk_r20-windows,但是打开manager.exe,里面没有4.1
- 求助!eclipse logcat报错什么意思
- 高手进 公交换乘查询
- 小白求教!!艺龙旅行网的那个界面什么实现的?
while [ 1 ] ; do
repo sync
[ -n "$?" ] || break
done
2. machine android-review.googlesource.com login git-<userName>.gmail.com password <password> machine android.googlesource.com login git-<userName>.gmail.com password <password> machine android-review.googlesource.com login git-<userName>.gmail.com password <password>的信息。3. 把上面那段信息(<userName>和<password>用自己得到的真实信息)追加到~/.netrc文件结尾;4. 下载地址的URI更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。
然后按照官网描述的正常步骤操作,即可拉下Android源码。
http://blog.csdn.net/thl789/article/details/7524232
去soure.android.com上重新下载更新repo脚本,按照上边的说明一步步操作吧
你试试改用http下载 别用git了
另外修改一下 bin/repo下面的脚本试试