Correspondence between Android Studio and Gradle version

When updating Android Studio, you may receive a prompt to update Gradle to the latest available version. You can choose to accept the update, or you can manually specify the version based on the project's build requirements.

The following table lists the required Gradle version for each Android Gradle plugin version. For best performance, you should use the latest versions of both Gradle and plugins.

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.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+

You can  specify the Gradle version in the File  >  Project Structure  >  Project menu of Android Studio  , or you can gradle/wrapper/gradle-wrapper.properties modify the Gradle distribution reference in the  file.

Guess you like

Origin blog.csdn.net/qq_37381177/article/details/111310136