美文网首页
build报错集合

build报错集合

作者: 加油小李 | 来源:发表于2022-04-08 10:47 被阅读0次

错误一:

Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://developer.huawei.com/repo)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.

截屏2022-04-08 10.45.54.png
解决办法一:
build.gradle不支持http 改为https即可解决
解决办法二:在mavem依赖对象里面加allowInsecureProtocol = true

相关文章

网友评论

      本文标题:build报错集合

      本文链接:https://www.haomeiwen.com/subject/qexysrtx.html