为了账号安全,请及时绑定邮箱和手机立即绑定

运行第一个项目报错

A problem occurred configuring root project 'MyApplication'.

> Could not resolve all dependencies for configuration ':classpath'.

   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'Bstek(http://nexus.bsdn.org/content/groups/public/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.0.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. 

http://img1.sycdn.imooc.com//613e0b1f0001807018150890.jpg

正在回答

1 回答

使用阿里云提供的镜像仓库即可:

maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

运行第一个项目报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信