欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

A problem occurred configuring root project ‘xxx‘.

最编程 2024-02-23 08:44:55
...

刚开始接触gradle项目的时候遇到这个问题,网上搜索发现没有想要的答案,然后自己摸来摸去发现这个问题貌似就是idea没选好本地gradle文件导致的,想想没有答案也对,有哪个憨憨会和我一样啊(lll¬ω¬)!

A problem occurred configuring root project 'xxx'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://ip/repository/maven-public/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.1.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. 

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

拉项目的时候只有7.1.1的文件,但是我本地应该是6.7.1版本的,我发现一直加载不到 

检查根据上图配置,然后"重启idea",如果有和我一样的,希望有用