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
}

 

posted @ 2022-12-26 10:25  Supper_litt  阅读(88)  评论(0)    收藏  举报