Android gradle configuration

buildscript {
    
    
    repositories {
    
    
        mavenCentral()
        jcenter()
        maven {
    
     url 'https://jitpack.io' }
        maven {
    
     url 'https://maven.google.com' }
        google()
    }
    dependencies {
    
    
        classpath "com.android.tools.build:gradle:x.x.x"
    }
}

allprojects {
    
    
    repositories {
    
    
        mavenCentral()
        jcenter()
        maven {
    
     url 'https://jitpack.io' }
        maven {
    
     url 'https://maven.google.com' }
        maven {
    
    
            url 'https://raw.githubusercontent.com/xiaomi-passport/maven-repository/master/releases'
        }
        maven {
    
     url "https://oss.sonatype.org/content/repositories/snapshots" }
        google()
    }
}

猜你喜欢

转载自blog.csdn.net/hhbgk/article/details/109744221