错误一:
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
网友评论