If you get the above error/warning message for your Java Project with a Gradle Build tool on IntelliJ IDE (say Android Studio) then you can do one of the below steps to resolve this issue.
Update Gradle Wrapper (Android Studio)
- Open your project in Android Studio IDE
- Go to the gradle/wrapper directory in your project folder.
- Open the file gradle-wrapper.properties.
- Change the distributionUrl to Gradle version as per below compatibility table.
Example:distributionUrl=https\://services.gradle.org/distributions/gradle-<version>-bin.zip#Fri Aug 18 16:53:39 CST 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
Plugin Version Minimum Required Gradle Version 8.3 8.3 8.2 8.2 8.1 8.0 8.0 8.0 7.4 7.5 7.3 7.4 7.2 7.3.3 7.1 7.2 7.0 7.0 4.2.0+ 6.7.1 4.1.0+ 6.5+ 4.0.0+ 6.1.1+ 3.6.0 - 3.6.4 5.6.4+ 3.5.0 - 3.5.4 5.4.1+ 3.4.0 - 3.4.3 5.1.1+ 3.3.0 - 3.3.3 4.10.1+ 3.2.0 - 3.2.1 4.6+ 3.1.0+ 4.4+ 3.0.0+ 4.1+ 2.3.0+ 3.3+ 2.1.3 - 2.2.3 2.14.1 - 3.5 2.0.0 - 2.1.2 2.10 - 2.13 1.5.0 2.2.1 - 2.13 1.2.0 - 1.3.1 2.2.1 - 2.9 1.0.0 - 1.1.3 2.2.1 - 2.3
Update build.gradle script
- Open the build.gradle file in your project folder.
- Make sure that the Gradle plugin version specified in the build.gradle file is compatible with Gradle X.0 for which you are getting the error.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!