其他分享
首页 > 其他分享> > Android studio(4.0) build.gradle"Project"

Android studio(4.0) build.gradle"Project"

作者:互联网

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    //阿里云地址
    repositories {
        maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
        maven {url "http://maven.aliyun.com/nexus/content/repositories/jcenter"}
        google()
        jcenter {url "http://jcenter.bintray.com/"}
        maven { url "http://jitpack.io"}
        mavenCentral()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.0.1"
        

        // 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/"}
        maven {url "http://maven.aliyun.com/nexus/content/repositories/jcenter"}
        google()
        jcenter {url "http://jcenter.bintray.com/"}
        maven { url "http://jitpack.io"}
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

 

标签:maven,http,4.0,jcenter,url,gradle,Project,nexus,com
来源: https://www.cnblogs.com/heimaohui/p/13768178.html