12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- repositories {
- // 添加阿里云 maven 地址
- // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
- // maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url 'https://maven.google.com' }
- // maven {
- // url 'https://maven.google.com/'
- // name 'Google'
- // }
- google()
- mavenCentral() // add repository
- }
- dependencies {
- // classpath 'com.android.tools.build:gradle:3.4.2'
- classpath 'com.android.tools.build:gradle:3.5.3'
- classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2'
- classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- // 添加阿里云 maven 地址
- // maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
- // maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
- google()
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url 'https://maven.google.com' }
- // maven {
- // url 'https://maven.google.com/'
- // name 'Google'
- // }
- }
- }
- //task clean(type: Delete) {
- // delete rootProject.buildDir
- //}
|