当你用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,下载对应版本的Gradle。

下载网址:https://services.gradle.org/distributions/

2,把下载的Gradle压缩包直接放到AS使用它的目录中。

我的目录:C:\Users\sunylat\.gradle\wrapper\dists\gradle-6.1.1-all

3,随后重启Android studio就可以了!

 

参考:

https://blog.csdn.net/sinat_38321889/article/details/72783659

相关文章:

  • 2022-02-09
  • 2021-12-22
  • 2022-12-23
  • 2022-01-14
  • 2022-01-06
  • 2021-04-14
  • 2021-04-14
  • 2022-02-09
猜你喜欢
  • 2021-07-30
  • 2021-06-12
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-09-05
  • 2021-10-05
相关资源
相似解决方案