CSDN的仁兄仁姐们好,这几天我在下载Android4.0源码时遇到一个蛮纠结的问题,在执行到repo sync的时候,老报以下错误,详细如下:
fatal: '../platform/abi/cpp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp
请知晓该问题的仁兄帮忙一下,谢谢!
请不要告诉我删除.repo就行了,这一招行不通,多谢~
fatal: '../platform/abi/cpp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp
请知晓该问题的仁兄帮忙一下,谢谢!
请不要告诉我删除.repo就行了,这一招行不通,多谢~
$ PATH=/android/bin:$PATH
2.下载repo脚本文件并使其可执行:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /android/bin/repo
$ chmod a+x /android//bin/repo
3.准备源码目录:$ mkdir /android/work,然后进入该目录:$ cd /android/work
4.初始化repo(work目录下),2条命令:
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
5.同步开始下载源码:
$ repo sync
源码Downloading.....
改成
fetch="git://Android.git.linaro.org/"
改成
fetch="git://Android.git.linaro.org/"
Network is unreachable while accessing https://android.googlesource.com/a/platform/manifest/info/refs
改成这个网址下载就快了,基本是你的宽带的峰值了