设置build.gradle
buildscript {
repositories {
maven { url ‘https://maven.aliyun.com/repository/central’ }
maven { url ‘https://maven.aliyun.com/repository/public/’ }
maven { url ‘https://maven.aliyun.com/repository/google’ }
maven { url ‘https://maven.aliyun.com/repository/jcenter’ }
google()
jcenter()
maven { url 'https://jitpack.io' }
mavenLocal()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
}
}
allprojects {
repositories {
maven { url ‘https://maven.aliyun.com/repository/central’ }
maven { url ‘https://maven.aliyun.com/repository/public/’ }
maven { url ‘https://maven.aliyun.com/repository/google’ }
maven { url ‘https://maven.aliyun.com/repository/jcenter’ }
// maven { url ‘https://maven.aliyun.com/repository/gradle-plugin’}
google()
jcenter()
maven { url ‘https://jitpack.io’ }
maven {
url “https://raw.githubusercontent.com/tingban/maven-repository/release”
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}