Gradle sync failed: Connection refused

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

    On your Mac open your terminal window and hit below command

    echo $proxy

    It should return your IP address and port number

    Now check your gradle.properties of your project and seyt below properties as per your login details

     systemProp.http.proxyPort=80
     systemProp.http.proxyUser=
     org.gradle.parallel=true
     systemProp.http.proxyPassword=
     org.gradle.jvmargs=-Xmx1536m
     systemProp.https.proxyHost=
     systemProp.http.proxyHost=
     systemProp.https.proxyPort=
    

提交回复
热议问题