A problem occurred configuring project ':react-native-michael-ali-onepass'. > Could not resolve all dependencies for configuration ':react-native-michael-ali-onepass:classpath'. > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven2(http://maven.aliyun.com/nexus/content/repositories/releases)' 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.
时间: 2024-04-29 18:19:18 浏览: 200
react-native-amazing-cropper:使用动画API进行本机React的图像裁剪器
这个错误是由于在配置 ':react-native-michael-ali-onepass' 项目的时候,使用了不安全的协议来访问 Maven 仓库 'http://maven.aliyun.com/nexus/content/repositories/releases',而 Gradle 不支持在没有明确允许的情况下使用不安全的协议来访问仓库。因此,你需要将该 Maven 仓库的访问协议更改为安全协议(如 HTTPS),或者允许使用不安全的协议。你可以查看 Gradle 文档中的 https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol 了解更多详情。
阅读全文