Gradle modifies the Maven repository address

Modify the address of the Gradle Maven repository to be an Alibaba Cloud image

Modify the build.gradle files in the root and subdirectories, and append the Alibaba Cloud repository:
buildscript {
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url  "https://urbanairship.bintray.com/android" }
        jcenter ()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // 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/' }
        jcenter ()
    }
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326219164&siteId=291194637