Gradle sync failed: Connection refused

后端 未结 29 3164
小鲜肉
小鲜肉 2020-11-29 10:14

So I just installed Android Studio again after a long time and it asked me to configure the proxy, so I did. I tested the connection and it worked.

Then it asked me

29条回答
  •  广开言路
    2020-11-29 10:42

    Use gradle.properties file in this path and check proxy info within:

    C:\Users\[Windows-User]\.gradle\gradle.properties
    

    I solve the problem by comment proxy definitions in this file.

    Commented lines:

    #systemProp.http.proxyHost=127.0.0.1
    #systemProp.https.proxyPort=9050
    #systemProp.https.proxyHost=127.0.0.1
    #systemProp.http.proxyPort=9050
    

    # used for comment in gradle files

提交回复
热议问题