以前的一个旧的项目,今天编译就出现如下错误
Connection timed out: connect. If you ar behind an http proxy,please configure the proxy setting either in IDE or Gradle.
如上图,这些错误,先排除了IDE使用代理,打点开链接也打不开,可以肯定是下载包被和谐。解决方法就是:
步骤二:选一个延时比较低的IP。修改 c:\windows\system32\drivers\etc\hosts 文件,如下
步骤三:保存hosts文件,然后再 Sync Project with Gradle Files 即可。