build报错集合

2022-04-08  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读