android studio user guide
https://developer.android.com/studio/releases/gradle-plugin.html#revisions
对应关系:Plugin vesion指的是在AS中作为plugin的version, Gradle Version 指的是其本身的version , distributionUrl 填入其本身的version
When you update Android Studio, you may receive a prompt to also update Gradle to the latest available version. You can choose to accept the update or manually specify a version based on your project's build requirements.
The following table lists which version of Gradle is required for each version of the Android plugin for Gradle. For the best performance, you should use the latest possible version of both Gradle and the Android 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+ |
You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in thegradle/wrapper/gradle-wrapper.properties file. The following example sets the Gradle version to 3.3 in thegradle-wrapper.properties file.
... distributionUrl = https\://services.gradle.org/distributions/gradle-3.3-all.zip ...

本文介绍了 Android Gradle 插件与 Gradle 版本之间的兼容性要求。为了确保项目的最佳性能,请使用最新版本的 Android Gradle 插件和 Gradle。文中提供了不同版本的 Android Gradle 插件所需的 Gradle 最低版本。
1381

被折叠的 条评论
为什么被折叠?



