Android Gradle Plugin和Gradle Version对应关系

锺离烈
2023-12-01

Gradle Plugin
android studio 的 Tools -- AGP Upgrade Assistant -- 查看最新版本
点Run selected steps升级


Gradle Plugin (插件版本)   Gradle version(所需Gradle版本)
1.0.0 - 1.1.3            2.2.1 - 2.3
1.2.0 - 1.3.1            2.2.1 - 2.9
1.5.0                       2.2.1 - 2.13
2.0.0 - 2.1.2            2.10 - 2.13
2.1.3 - 2.2.3            2.14.1+
2.3.0+                     3.3+
3.0.0+                     4.1+
3.1.0+                     4.4+
3.2.0 - 3.2.1            4.6+
3.3.0 - 3.3.3            4.10.1+
3.4.0 - 3.4.3            5.1.1+
3.5.0 - 3.5.4            5.4.1+
3.6.0 - 3.6.4            5.6.4+
4.0.0+                     6.1.1+
4.1.0+                     6.5+
4.2.0+                     6.7.1+

7.1.1                       7.4
7.4.0                       7.6

kotlin-gradle-plugin
Gradle - Plugin: org.jetbrains.kotlin.kapt    点击 Other Versions
org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21

core-ktx

Android KTX  |  Android 开发者  |  Android Developers

androidx.core:core-ktx:1.10.1

activity-ktx

https://mvnrepository.com/artifact/androidx.activity/activity-ktx

androidx.activity:activity-ktx:1.7.1

fragment-ktx
https://developer.android.google.cn/kotlin/ktx?hl=zh-cn#fragment

androidx.fragment:fragment-ktx:1.5.7

viewmodel-ktx

https://developer.android.google.cn/kotlin/ktx?hl=zh-cn#viewmodel

androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1

lifecycle_ktx

https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime-ktx

androidx.lifecycle:lifecycle-livedata-ktx:2.6.1

androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1

androidx.lifecycle:lifecycle-runtime-ktx:2.6.1

 类似资料: