下面看下解决方案:
project的根build.gradle
buildscript {
repositories {
//google()
//jcenter()
//mavenCentral()
//maven { url "https://jitpack.io" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/public" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
|