打开Android studio 项目代码没有修改过,之前也是完好运行的,现在突然报错,项目不能运行,重启也没生效

报错信息

> Using insecure protocols with repositories, without explicit opt-in,

> is unsupported. Switch Maven repository

> 'maven(http://maven.aliyun.com/nexus/content/groups/public)' to

> redirect to a secure protocol (like HTTPS) or allow insecure

> protocols.

解决办法是降版本处理 找到文件gradle→wrapper→gradle-wrapper.properties打开 修改distributionUrl

原地址为:distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip 修改地址为:distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

精彩链接

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: