Could not resolve all dependencies for configuration ':classpath'

后端 未结 23 1456
离开以前
离开以前 2020-12-01 04:27

I cant seem to get build tools for the latest gradle at all. I suspect its something to do with proxy setting for gradle. I have had a good look online but still cant seem t

23条回答
  •  旧巷少年郎
    2020-12-01 04:47

    you should have gradle.properties file defined for the build with proxy settings so that gradle knows how to use http connection

    # This file contains the basics for Maven Version control and will be used by the Artifactory Release management
    # These settings are for the root project and all sub-projects in this application
    releaseVersion=1.0.0-SNAPSHOT
    releaseGroup=com.xx.xx.xx
    artifactory_user=
    artifactory_password=
    artifactory_contextUrl=https://artifactory.xxxx.com/artifactory/
    systemProp.http.proxyHost=proxy.xxx.com
    systemProp.http.proxyPort=8080
    systemProp.https.proxyHost=proxy.xxx.com
    systemProp.https.proxyPort=8080
    systemProp.http.nonProxyHosts=*.xxx.com|localhost|*.int.targoe.com
    org.gradle.java.home=C:\\Program Files (x86)\\Java\\jdk1.8.0_121
    

提交回复
热议问题