为什么 Android 没有使用最新的 gradle 版本?
Why is Android not using the most recent gradle version?
我尝试使用 gradle 5.5.1 作为我项目的 gradle 版本,但下载成功后,不幸的是,它无法同步。有人知道为什么吗?
Why is Android not using the most recent gradle version?
一般来说 gradle 版本和 Android Gradle 插件之间有一个 compatibility。
The following table lists which version of Gradle is required for each version of the Android Gradle plugin. For the best performance, you should use the latest possible version of both Gradle and the plugin.
Plugin version Required Gradle version
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.2 4.10.1+
3.4.0+ 5.1.1+
在你的情况下 gradle 5.5.1 应该与 android 插件 3.4.2 一起工作。
我尝试使用 gradle 5.5.1 作为我项目的 gradle 版本,但下载成功后,不幸的是,它无法同步。有人知道为什么吗?
Why is Android not using the most recent gradle version?
一般来说 gradle 版本和 Android Gradle 插件之间有一个 compatibility。
The following table lists which version of Gradle is required for each version of the Android Gradle plugin. For the best performance, you should use the latest possible version of both Gradle and the plugin.
Plugin version Required Gradle version
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.2 4.10.1+
3.4.0+ 5.1.1+
在你的情况下 gradle 5.5.1 应该与 android 插件 3.4.2 一起工作。