目前下載清華的AOSP代碼總出現(xiàn)問題, 有一個(gè)可行的方法就是下載最新的月更新tar包:
請(qǐng)參考:https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
wget https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
tar xf aosp-latest.tar
repo sync
清華源的打包方式是沒法在一開始就指定分支的, 所以需要切換:
在.repo/manifests文件夾下切分支,在該文件下使用
git branch -a
即可看到所有的分支信息,使用
git checkout <分支>
切換到對(duì)應(yīng)的分支即可,切換完后返回工作目錄重新repo sync 一遍。