问题:
项目构建时报错:Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(XXX)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols.
解决方法
- 1 添加关键字
allowInsecureProtocol
maven {
allowInsecureProtocol = true
url 'xxx'
}
- 2 maven 地址url 由
http
改为https