当前位置:  开发笔记 > 开发工具 > 正文

Gradle构建失败:无法解析配置':classpath'的所有依赖项

如何解决《Gradle构建失败:无法解析配置':classpath'的所有依赖项》经验,为你挑选了1个好方法。

我有这个错误:

A problem occurred configuring root project 
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve org.hibernate.build.gradle:version-injection-plugin:1.0.0.
Could not GET 'http:.../gradle/version-injection-plugin/1.0.0/version-injection-plugin-1.0.0.pom'. Received status code 401 from server: Unauthorized
Could not resolve org.tmatesoft.svnkit:svnkit:1.7.11.
Could not GET 'http:.../svnkit/1.7.11/svnkit-1.7.11.pom'. 
Received status code 401 from server: Unauthorized

Gradle版本3.6.3



1> Eric Wendeli..:

鉴于您获得了HTTP 401:未经授权,我的直觉说这可能是repository {}您尚未声明凭据的声明.

像Gradle用户指南中描述的那样

repositories {
    maven {
        credentials {
            username 'user'
            password 'password'
        }
        url "http://repo.mycompany.com/maven2"
    }
}

推荐阅读
臭小子
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有