forked from ZhuoKeTeam/QPM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (37 loc) · 1.18 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
44
45
import javax.tools.JavaCompiler
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
compileSdkVersion = 26
buildToolsVersion = '27.0.3'
minSdkVersion = 19 // 之前是21,2018.9.29 兼容了5.0以下的手机,但我只有4.4的手机所以暂时修改为19,后续有更低的手机版本再考虑是否降低,
targetSdkVersion = 26
supportLibVersion = '27.0.0'
}
buildscript {
repositories {
jcenter()
google()
mavenLocal()
maven { url 'https://www.jitpack.io' }
}
dependencies {
// 要求本地 gradle 构建工具 必须大于 4.4 版本,本组件使用的是:gradle-4.10.1-all
classpath 'com.android.tools.build:gradle:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
mavenLocal()
maven { url 'https://www.jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
tasks.withType(JavaCompiler) {
options.encoding = "UTF-8"
}