Gradle sync failed: Connection refused

后端 未结 29 3015
小鲜肉
小鲜肉 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:50

    I find when I change the option of Preferences -> Appearance & Behavior -> System Settings -> HTTP Proxy to Manual proxy configuration, the gradle properties of the project won't change, so I add:

    systemProp.http.proxyHost= myProxyHost
    systemProp.http.proxyPort= myProxyPort
    

    Then it runs well.

提交回复
热议问题