“fatal: '../platform/abi/cpp.git' does not appear

在我下载Android源代码时,在最后一步调用repo sync,出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”,后来在网上查了资料,参考http://zxquiet.iteye.com/blog/1470991http://bbs.csdn.net/topics/380254094android


一、在存放android系统源代码的目录(也就是执行repo sync命令的目录)下,有个.repo的隐藏目录,用ls -a能够查看的到,进入该目录:cd .repo;git


二、打开.repo目录下的manifest.xml文件(命令vim manifest.xml)并找到fetch属性,在个人文件中显示fetch="..",将fetch修改成 fetch="git://Android.git.linaro.org/",保存并退出;vim


三、继续repo sync就能够下载了。app

相关文章
相关标签/搜索