// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenLocal() mavenCentral() maven { url 'https://maven.aliyun.com/repository/public' } maven { url 'https://jitpack.io' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url'https://maven.aliyun.com/repository/jcenter/' } maven { url 'https://repo1.maven.org/maven2/' } } dependencies { classpath 'com.android.tools.build:gradle:3.6.3' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // 添加插件 更好支持GreenDao // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenLocal() mavenCentral() maven { url 'https://maven.aliyun.com/repository/public' } maven { url 'https://jitpack.io' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url'https://maven.aliyun.com/repository/jcenter/' } // maven { url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/" } maven { url 'https://repo1.maven.org/maven2/' } } } task clean(type: Delete) { delete rootProject.buildDir }