Android编译时报错Error:Connection timed out: connect. If you are behind an HTTP proxy, please......

来源:互联网 发布:农村淘宝站点查询 编辑:程序博客网 时间:2024/06/09 17:48

编写不易,如有转载,请声明出处: 梦回河口:http://blog.csdn.net/zxc514257857/article/details/72783168

报错全称为:

Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

原因为:

  AndroidStudio在下载gradle文件时下载失败

解决方法:

  同:AndroidStudio导入他人项目时,卡在Building ‘xxx’ gradle project info位置不动 http://blog.csdn.net/zxc514257857/article/details/57619554

  另:检查自己电脑的防火墙是否打开,防火墙若打开建议关闭防火墙

———-因本人才疏学浅,如博客或Demo中有错误的地方请大家随意指出,与大家一起讨论,共同进步,谢谢!———-

阅读全文
0 0