Bootstrap

全部Gradle版本和Gradle插件版本匹配关系

See the table below for the Java version supported by a specific Gradle release:

Table 1. Java Compatibility
Java versionSupport for toolchainsSupport for running Gradle

8

N/A

2.0

9

N/A

4.3

10

N/A

4.7

11

N/A

5.0

12

N/A

5.4

13

N/A

6.0

14

N/A

6.3

15

6.7

6.7

16

7.0

7.0

17

7.3

7.3

18

7.5

7.5

19

7.6

7.6

20

8.1

8.3

21

8.4

8.5

22

8.7

N/A

23

N/A

N/A

Kotlin

Gradle is tested with Kotlin 1.6.10 through 2.0.0-Beta3. Beta and RC versions may or may not work.

Table 2. Embedded Kotlin version
Minimum Gradle versionEmbedded Kotlin versionKotlin Language version

5.0

1.3.10

1.3

5.1

1.3.11

1.3

5.2

1.3.20

1.3

5.3

1.3.21

1.3

5.5

1.3.31

1.3

5.6

1.3.41

1.3

6.0

1.3.50

1.3

6.1

1.3.61

1.3

6.3

1.3.70

1.3

6.4

1.3.71

1.3

6.5

1.3.72

1.3

6.8

1.4.20

1.3

7.0

1.4.31

1.4

7.2

1.5.21

1.4

7.3

1.5.31

1.4

7.5

1.6.21

1.4

7.6

1.7.10

1.4

8.0

1.8.10

1.8

8.2

1.8.20

1.8

8.3

1.9.0

1.8

8.4

1.9.10

1.8

8.5

1.9.20

1.8

8.7

1.9.22

1.8

插件版本

所需的最低 Gradle 版本
8.4(Alpha 版)8.6-rc-1
8.38.4
8.28.2
8.18.0
8.08.0
7.47.5

参考下面网址可以看全部的。

Android Studio  |  Android Developers (google.cn)icon-default.png?t=N7T8https://developer.android.google.cn/build/releases/past-releases/agp-4-2-0-release-notes?hl=zh-cn

;