40 lines
1.4 KiB
Groovy
40 lines
1.4 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
//添加阿里云镜像
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
jcenter()
|
|
mavenCentral()
|
|
maven {url 'https://dl.google.com/dl/android/maven2/'}
|
|
google()
|
|
}
|
|
dependencies {
|
|
// classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.2'
|
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
|
}
|
|
}
|
|
allprojects {
|
|
repositories {
|
|
//添加阿里云镜像
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
|
jcenter()
|
|
mavenCentral()
|
|
maven {url 'https://dl.google.com/dl/android/maven2/'}
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
maven { url 'https://jitpack.io' }
|
|
maven {
|
|
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
|
|
}
|
|
google()
|
|
}
|
|
}
|
|
ext {
|
|
compileSdkVersion = 33
|
|
buildToolsVersion = "33.0.0"
|
|
minSdkVersion = 21
|
|
targetSdkVersion = 33
|
|
} |