-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
33 lines (29 loc) · 1.06 KB
/
build.gradle
File metadata and controls
33 lines (29 loc) · 1.06 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
//引入的各个支持库版本
ext {
kotlin_version = '1.7.20'
archLifecycleVersion = '1.1.1'
room_version = '2.4.3'
coroutine_version = '1.3.7'
gradleVersion = '4.0.1'
navigationVersion = '2.5.3'
dataBindingCompilerVersion = gradleVersion // Always need to be the same.
androidGradlePluginVersion = '7.3.1'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
// 添加 Android Gradle Plugin
}
}
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}