1、配置vpn,Android源码被墙了 2、 mkdir android cd android curl https://storage.googleapis.com/git-repo-downloads/repo > repo chmod a+x repo 向Google获取验证,(官方说话:防止匿名链接过多) https://android.googlesource.com/new-password 初始化仓库 ./repo init -u https://android.googlesource.com/platform/manifest #不启动Google验证 ./repo init -u https://android.googlesource.com/a/platform/manifest #启动了Google验证 ./repo init -u https://android.googlesource.com/mirror/manifest --mirror #做镜像 增加下面内容,设置dns $ vim /etc/hosts 74.125.31.82 www.googlesource.com 74.125.31.82 android.googlesource.com 203.208.46.172 cache.pack.google.com 59.24.3.173 cache.pack.google.com 开始同步(启动4个进程) ./repo sync -j4