windwos git repo下载Android更换为国内源的方法
在执行repo init -u https://github.com.cnpmjs.org/TinkerBoard2-Android/manifest.git -b android10-rk3399之后,会在本地得到.repo文件夹,
修改里面的.repo/manifest.xml文件
<remote name="github"
fetch="https://github.com/"
review="https://github.com/" />
修改为
<remote name="github"
fetch="https://github.com.cnpmjs.org/"
review="https://github.com.cnpmjs.org/" />这样就把github.com源换为国内的镜像源github.com.cnpmjs.org 了,同时,把
https://android.googlesource.com替换为
https://mirrors.tuna.tsinghua.edu.cn/git/AOSP
还有
https://android-review.googlesource.com替换为
git://aosp.tuna.tsinghua.edu.cn/android
保存后
这个时候 ,再repo sync 同步代码,就快了很多
一下飙升到3点几兆每秒!
其实这个换源方法,针对linux repo下载也是通用的
-------------------------------------------------------------------------------
深圳风火轮技术开发团队, NFCteam@smartfire.cn
风火轮京东店:https://mall.jd.com/index-744226.html
本帖最后由 风火轮用户84995 于 2021-5-16 16:58 编辑
repo sync到最后有几个仓库一直失败,难受住了
error: Cannot fetch TinkerBoard2-Android/external_chromium-webview from https://github.com/TinkerBoard2-Android/external_chromium-webview
Fetching: 100% (1/1), done in 1m12.475s
Garbage collecting: 100% (1/1), done in 0.005s
error: Cannot fetch TinkerBoard2-Android/external_chromium-webview from https://github.com/TinkerBoard2-Android/external_chromium-webview
Fetching: 100% (1/1), done in 15m31.724s
Garbage collecting: 100% (1/1), done in 0.008s
error: Cannot checkout TinkerBoard2-Android/external_chromium-webview: ManifestInvalidRevisionError: revision android10-rk3399 in TinkerBoard2-Android/external_chromium-webview not found
error: in `sync TinkerBoard2-Android/external_chromium-webview`: revision android10-rk3399 in TinkerBoard2-Android/external_chromium-webview not found
error: Cannot fetch TinkerBoard2-Android/external_linux-kselftest from https://github.com.cnpmjs.org/TinkerBoard2-Android/external_linux-kselftest
Fetching: 66% (492/738) TinkerBoard2-Android/packages_apps_Camera2error: Cannot fetch TinkerBoard2-Android/frameworks_base from https://github.com.cnpmjs.org/TinkerBoard2-Android/frameworks_base
你是windows下的git repo还是linux下载的? peter 发表于 2021-5-17 10:30
你是windows下的git repo还是linux下载的?
ubuntu虚拟机里面
页:
[1]