Error:Unknown host services.gradle.org. You may need to adjust the proxy settings in Gradle

后端 未结 16 2287
有刺的猬
有刺的猬 2020-12-15 08:38

i have tried it many times but its giving me same error.how to set the proxy so that this error is solved

16条回答
  •  孤城傲影
    2020-12-15 08:47

    For some reason, using a shared machine, I couldn`t figure out where this proxy properties is comming from.

    So a workaround to fix this is add in you project gradle.properties the following (empty properties). So It will override top hierarchy configuration:

    systemProp.http.proxyPort=
    systemProp.http.proxyUser=
    systemProp.http.proxyPassword=
    systemProp.https.proxyPassword=
    systemProp.https.proxyHost=
    systemProp.http.proxyHost=
    systemProp.https.proxyPort=
    systemProp.https.proxyUser=
    

提交回复
热议问题