「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

相關文章
相關標籤/搜索