ERROR: Minimum supported Gradle version is 5.4.1. Current version is 5.1. Please fix the project‘s

ERROR: Minimum supported Gradle version is 5.4.1. Current version is 5.1. Please fix the project’s Gradle settings.


Explain the corresponding relationship between the gradle plug-in version number and the gradle version.
The gradle folder - gradle-wrapper.properties refers to the gradle version number.
The build.gradle file - classpath 'com.android.tools.build:gradle:3.0.0' refers to The version number of the gradle plugin, not the version number of gradle. However, the version number of the gradle plug-in and the version number of gradle are related.


This error occurs after importing the project, indicating that the version of the build tool does not correspond to the version of gradle. You can check the official website
https://developer.android.google.cn/studio/releases/gradle-plugin for the complete correspondence.

You can download the corresponding version number through the Gradle official website

insert image description here
You can specify the Gradle version in Android Studio's File > Project Structure > Project menu, or by modifying the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.properties file

Guess you like

Origin blog.csdn.net/weixin_51966599/article/details/126740249
Recommended