Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository ‘maven4(http://maven.aliyun.com/nexus/content/groups/public)’ to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
今天在出包的时候一直提示这个错误,
刚开始以为把allowInsecureProtocol = true 加上应该就好了,发现加完没有卵用。
整了个大半天发现自己写错了: maven { url ‘http://maven.aliyun.com/nexus/content/groups/public’ }
麻蛋,漏加了一个s,修改后
maven { url ‘https://maven.aliyun.com/nexus/content/groups/public’ }
然后就好了,搞笑不。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)