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

后端 未结 16 2253
有刺的猬
有刺的猬 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 09:08

    If you are using an http proxy server, revise the following proxy settings in "gradle.properties" file in your project's root folder. If not using proxy server, just delete those entries.

    systemProp.http.proxyPort=8080
    systemProp.http.proxyUser=UserName
    systemProp.http.proxyPassword=Passw0rd
    systemProp.https.proxyPassword=Passw0rd
    systemProp.https.proxyHost=proxy.abc.com
    systemProp.http.proxyHost=proxy.abc.com
    systemProp.https.proxyPort=8080
    systemProp.https.proxyUser=UserName
    

提交回复
热议问题