// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public'} } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0' //黄油刀 classpath 'org.greenrobot:greendao-gradle-plugin:3.0.0' //数据库 } } allprojects { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public'} maven { url 'https://jitpack.io' } } } task clean(type: Delete) { delete rootProject.buildDir }
使用了阿里代理好像依赖的时候不能有+ 必须指定到某一版本