Gradle sync failed: Connection refused

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

    In your gradle.properties file inside your app project, add the following properties (both HTTP and HTTPS):

    systemProp.http.proxyHost=
    systemProp.http.proxyPort=
    systemProp.https.proxyHost=
    systemProp.https.proxyPort=
    

    If your network has a proxy (not defined in your system configuration), go to:

    File > Settings > Appearance & Behavior > System Settings > HTTP Proxy

    and setup Manual proxy configuration,

    otherwise, check Auto-detect proxy settings.

提交回复
热议问题