當你用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