一、更新SDK
国内Android镜像:
IPV4:mirrors.dormforce.net
IPV4:mirrors.opencas.ac.cn
IPV4:mirrors.neusoft.edu.cn
IPV4:ubuntu.buct.edu.cn
IPV4:ubuntu.buct.cn
IPV6:ubuntu.buct6.edu.cn
port:80
勾选 Force https://...
二、更新Android源码
支持 CM 和 AOSP:
运行 ping ad.doubleclick.net 得到 IP 地址;
修改 hosts 文件,添加下面内容:
IP地址 googlesource.com
IP地址 android.googlesource.com
IP地址 gerrit.googlesource.com
例如:
[email protected]:~$ ping ad.doubleclick.net
PING dart.l.doubleclick.net (117.34.96.52) 56(84) bytes of data.
64 bytes from 117.34.96.52: icmp_seq=1 ttl=46 time=33.3 ms
64 bytes from 117.34.96.52: icmp_seq=2 ttl=46 time=29.4 ms
64 bytes from 117.34.96.52: icmp_seq=3 ttl=46 time=29.4 ms
64 bytes from 117.34.96.52: icmp_seq=4 ttl=46 time=32.0 ms
修改hosts文件,添加如下内容?:
117.34.96.52 googlesource.com
117.34.96.52 android.googlesource.com
117.34.96.52 gerrit.googlesource.com