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

后端 未结 16 2056
有刺的猬
有刺的猬 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:04

    The problem is you are not able to download gradle from the host specified in gradle/wrapper/gradle-wrapper.properties

    In my case this happened after I refactored the code using Idea. To get this working: 1. Be sure you can download the zip file at URL in the file mentioned above 2. If you can you may wanna check your proxy configuration or env vars

    0 讨论(0)
  • 2020-12-15 09:07

    If you are using WAMP/XAMP server turn it off. This resolved my problem.

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-15 09:11

    In my case if was turned on 'offline mode' in gradle. Turning off offline solved the problem

    0 讨论(0)
提交回复
热议问题