Using insecure protocols with repositories, without explicit opt-in, is unsupported.
一个很简单的问题,还纠结了半天,笨死朕了。
一、配置修改
修改前:
repositories {
maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
}
修改后:
repositories {
maven{ url "https://maven.aliyun.com/nexus/content/groups/public/" }
}
二、额外的
进行旧项目的仓库配置时 jcenter
(已不更新) 也要改成 mavenCentral
仓库。
完整配置如下:
repositories {
maven{ url "https://maven.aliyun.com/nexus/content/groups/public/" }
google()
mavenCentral()
}
手动下载Gradle