Using insecure protocols with repositories(已解决)

1. 异常日志

A problem occurred configuring root project 'AIEnglish'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven3(http://117.78.6.251:8082/repository/maven-public/)' 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. 

2.原因分析

高版本的Gradle进行了严格的安全检查,如果buildscriptallprojects中的 引用库repositories的地址使用了不安全的协议就会报异常。

3.解决方案

(1)使用安全的协议

如果仓库地址存在https协议的,将http仓库地址替换成https仓库地址
原地址:

 
 

你可能感兴趣的:(问题,android,android-studio,gradle)