Android 开发 Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure th

当你用Android studio 打开一个新项目,可能会报错  Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

1、仔细观察项目打开过程,你会发现 AS会提示  类似于:Gradle: Download: http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.8.3/gradle-0.8.3.jar


2、从网上搜索下载gradle-0.8.3.jar或者其他相关提示版本


3、打开C:\Users\用户名\.gradle\wrapper\dists文件夹  ,你会看到相关版本列表文件 ,将你下载好的gradle 放到对应文件夹  从新启动 android studio  ok了

猜你喜欢

转载自blog.csdn.net/cnicfhnui/article/details/51225474