刚开始接触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",如果有和我一样的,希望有用

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐