1. 程式人生 > 實用技巧 >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 }