Gradle can't resolve dependencies through my http proxy

前端 未结 2 1437
暗喜
暗喜 2021-01-17 23:53

when I try to run gradle dependencies on my computer I am getting a 407 status code \"Proxy Authentication Required.\"

I created a gradle.properties fil

2条回答
  •  时光取名叫无心
    2021-01-18 00:35

    Some dependencies are fetched from servers that run over HTTPS so you need to specify values for https properties as well:

    systemProp.https.proxyHost=http-proxy.nwie.net
    systemProp.https.proxyPort=8080
    systemProp.https.proxyUser=http-proxy.nwie.net/%USERNAME%
    systemProp.https.proxyPassword=%PASSWORD%
    

提交回复
热议问题