-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
37 lines (31 loc) · 1.3 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// kotlin版本必须和compose版本是对应的,每个版本具体对应情况可以在这个网站查询:
// https://developer.android.com/jetpack/androidx/releases/compose-kotlin
// 注意:有的compose版本在远程仓库中无法找到,会报错:"Could not find" androidx.compose.ui:ui-tooling:1.5.14!
// 可以将链接https://dl.google.com/dl/android/maven2/androidx/compose/ui/ui-tooling/1.5.14/ui-tooling-1.5.14.pom
// 放到浏览器里面尝试是否可以下载文件来确定这个版本是否可以下载。更换到可以下载的版本即可Sync/编译通过
kotlin_version = '1.9.20'
compose_version = '1.5.4'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}