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.
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Gradle,
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
- How to create Gradle Multi-Project in IntelliJ
- Find installed Gradle version command
- Adding Jackson dependency to Java Gradle Project
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Create a Gradle Java Project in VS Code
- Generate Project Dependency tree using Gradle Command
- Fix: Spring Boot + IntelliJ + Gradle : Unsupported class file major version 64 Error
- Fix: Unsupported Java. Your build is currently configured to use Java 17.0.5 and Gradle 7.1.
- Run IntelliJ Java main method without Gradle build
- Fix: Deprecated Gradle features were used in this build, making it incompatible with Gradle
- Installing Gradle on macOS - Gradle Tutorial
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK
- How to Clear Gradle Cache on Mac
- How to run Gradle build in offline mode
- Install Gradle VS Code for Java Projects
- How to add maven central repository in build.gradle
More Posts:
- How to stop disable Facebook video autoplay during scroll - Facebook
- Upload docx file using PHP script - PHP
- Convert String from uppercase to lowercase in Bash - Bash
- Save current timestamp in MySQL using PHP mysqi binding - PHP
- Can't Run SDK Manager find_java.bat issue - Android
- Step by Step: Spring Boot + JPA + MySQL + Redis as Cache - Java
- Fix - JioCinema Something Went Wrong Please Try Again Error 8001 while streaming IPL Cricket Live - HowTos
- Fix Power Automate FLOW error - InvalidTemplate Unable to process template language expressions in action - Microsoft