android studio build.gradle

buildscript {
    repositories {
        //google()
        //jcenter()
        //maven {url 'http://developer.huawei.com/repo/'}
        maven {url 'https://maven.aliyun.com/repository/google/'}
        maven {url 'https://maven.aliyun.com/repository/jcenter'}
        maven {url 'https://maven.aliyun.com/repository/public/'}
        maven {url 'http://developer.huawei.com/repo/'}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.3'

        classpath 'com.huawei.agconnect:agcp:1.4.1.300'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven {url 'https://maven.aliyun.com/repository/google/'}
        maven {url 'https://maven.aliyun.com/repository/jcenter'}
        maven {url 'https://maven.aliyun.com/repository/public/'}
        //google()
        //jcenter()
        maven { url 'https://jitpack.io' }
        maven { url "http://mvn.gt.getui.com/nexus/content/repositories/releases/"}
        //maven { url "https://maven.google.com" }
        maven {url 'http://developer.huawei.com/repo/'}
    }
}

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

你可能感兴趣的:(android,studio,android,gradle)