最新 android studio 阿里 maven 仓库地址 Using insecure protocols with repositories, without explicit op

因为一直拉不到想要的包 , 添加阿里的仓库后 提示错误:

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

查资料发现好像是协议更新了 .阿里也更新了新地址
新地址:

  repositories {
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }

        google()
        mavenCentral()
    }

阿里新老仓库更换对比
https://maven.aliyun.com/mvn/guide

你可能感兴趣的:(随手记,android,studio,maven,阿里云,gradle)