android studio 配置阿里云镜像

2019-12-28  本文已影响0人  XII01

给项目加个翅膀

buildscript {
    repositories {
        //阿里云的镜像库
        maven {
            url "http://maven.aliyun.com/nexus/content/groups/public/"
        }

        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        //阿里云的镜像库
        maven {
            url "http://maven.aliyun.com/nexus/content/groups/public/"
        }

        google()
        jcenter()
        
    }
}
上一篇 下一篇

猜你喜欢

热点阅读