-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle
43 lines (38 loc) · 1.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
// 引用jcenter上传的库
classpath 'com.novoda:bintray-release:0.9.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
//configurations.all {
// //循环一个个的依赖库
// resolutionStrategy.eachDependency { DependencyResolveDetails details ->
// //获取当前循环到的依赖库
// def requested = details.requested
// //如果这个依赖库群组的名字是com.android.support
// if (requested.group == 'com.android.support') {
// //且其名字不是以multidex开头的
// if (!requested.name.startsWith("appcompat-v7")) {
// //这里指定需要统一的依赖版本
// details.useVersion '28.0.0'
// }
// }
// }
//}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}