[fix] Deprecated gradle features were used in this build, making it incompatible with Gradle X.0


Error:

Deprecated gradle features were used in this build, making it incompatible with gradle 8.0.


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)

  1. Open your project in Android Studio IDE
  2. Go to the gradle/wrapper directory in your project folder.
  3. Open the file gradle-wrapper.properties.
  4. Change the distributionUrl to Gradle version as per below compatibility table.
    distributionUrl=https\://services.gradle.org/distributions/gradle-<version>-bin.zip
    Example:
    #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
    Fix - making it incompatible with Gradle Version Error
    Plugin VersionMinimum Required Gradle Version
    8.38.3
    8.28.2
    8.18.0
    8.08.0
    7.47.5
    7.37.4
    7.27.3.3
    7.17.2
    7.07.0
    4.2.0+6.7.1
    4.1.0+6.5+
    4.0.0+6.1.1+
    3.6.0 - 3.6.45.6.4+
    3.5.0 - 3.5.45.4.1+
    3.4.0 - 3.4.35.1.1+
    3.3.0 - 3.3.34.10.1+
    3.2.0 - 3.2.14.6+
    3.1.0+4.4+
    3.0.0+4.1+
    2.3.0+3.3+
    2.1.3 - 2.2.32.14.1 - 3.5
    2.0.0 - 2.1.22.10 - 2.13
    1.5.02.2.1 - 2.13
    1.2.0 - 1.3.12.2.1 - 2.9
    1.0.0 - 1.1.32.2.1 - 2.3

Update build.gradle script

  1. Open the build.gradle file in your project folder.
  2. 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!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap