repo init 錯(cuò)誤: error: The requested URL returned error: 403 while accessing http://android.git.kernel.org/platform/manifest.git/info/refs fatal: HTTP request failed fatal: cannot obtain manifest http://android.git.kernel.org/platform/manifest.git 將初始化地址改為: repo init -u git://github.com/android/platform_manifest.git git://github.com/android/platform_manifest.git
repo sync出現(xiàn)“ fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解決方案
1、在存放android系統(tǒng)源代碼的目錄(也就是執(zhí)行repo sync命令的目錄)下,有個(gè).repo的隱藏目錄,用ls -a可以查看的到,進(jìn)入該目錄:cd .repo;
2、打開(kāi).repo目錄下的manifest.xml文件(命令vim manifest.xml)并找到fetch屬性,在我的文件中顯示fetch="..",將fetch修改為fetch="git://Android.git.linaro.org/",保存并退出;
3、繼續(xù)repo sync
就可以下載了。