-
Notifications
You must be signed in to change notification settings - Fork 48
/
build.gradle
50 lines (40 loc) · 1.4 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
46
47
48
49
50
import javax.tools.JavaCompiler
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
compileSdkVersion = 34
// buildToolsVersion = '34.0.0'
buildToolsVersion = '30.0.2'
minSdkVersion = 21 // 之前是21,2018.9.29 兼容了5.0以下的手机,但我只有4.4的手机所以暂时修改为19,后续有更低的手机版本再考虑是否降低,
targetSdkVersion = 34
}
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:4.2.2'
classpath 'com.android.tools.build:gradle:8.6.0-alpha03'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.4.2'
classpath 'com.google.firebase.crashlytics:com.google.firebase.crashlytics.gradle.plugin:3.0.2'
}
}
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"
}