
1 allprojects {
2 repositories {
3 mavenLocal()
4 maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" } //将http改为https
5 maven { name "Bstek" ; url "https://nexus.bsdn.org/content/groups/public/" }
6 mavenCentral()
7 }
8
9 buildscript {
10 repositories {
11 maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
12 maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/'}
13 maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
14 }
15 }
16 }
将配置文件中的http改为https问题得到解决。
