// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
//        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        google()
    }
    dependencies {
        classpath 'com. Android. Tools. Build: gradle: 3.3.1'
    }
}

allprojects {
    repositories {
        maven { url 'https://maven.google.com' }
        jcenter()
        mavenCentral()
        maven { url "https://dl.google.com/dl/android/maven2/"}
//        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}}}Copy the code




1.
buildscriptWhere are the maven libraries and plugins required for gradle script execution


2,
allprojectsAre the dependencies required by the project itself.