栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

Gradle无法HEAD https://..pom>对等方未通过身份验证

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Gradle无法HEAD https://..pom>对等方未通过身份验证

将您的存储库语法更改为以下之一

repositories {    jcenter {        url "http://jcenter.bintray.com/"    }}repositories {    maven  {        url "http://repo1.maven.org/maven2"    }}

当前(2.1)gradle文档声称

Warning: Be aware that the central Maven 2 repository is HTTP only and HTTPS is not supported. If you need a public HTTPS enabled central repository, you can use the JCenter public repository (see Section 51.6.3, “Maven JCenter repository”).

我认为Maven Central可以使用https。如果我使用以下语法。

repositories {    mavenCentral()}

我收到以下错误。

D: tools gradle-2.1-bin bin gradle.bat -q

失败:生成失败,发生异常。

出了什么问题:配置根项目“ XXXX”时出现问题。

无法解析配置’:classpath’的所有依赖关系。无法解析de.undercouch:gradle-download-task:1.0。:XXXX:所要求的不确定莫非不是HEAD ‘ https://repo1.maven.org/maven2/de/undercouch/gradle-download-task/1.0/gradle-download-task-1.0.pom ‘。对等方未认证

  • 尝试:使用–stacktrace选项运行以获取堆栈跟踪。使用–info或–debug选项运行以获取更多日志输出。


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/437970.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号