android build.gradle 配置 ,改成这个就好。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
// mavenCentral() // add repository
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'}
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
RT

浙公网安备 33010602011771号