Search code examples
androidandroid-studioandroid-gradle-plugin

Error: minimum supported gradle version is 4.6 in android studio 3.0.1


I want to use forcefully use 4.4 gradle version. Is there any solution for that?

Minimum supported Gradle version is 4.6. The current version is 4.4. Please fix the project's Gradle settings. Fix Gradle wrapper and re-import project Gradle settings

gradle-wrapper.properties:

#Mon Sep 03 10:52:24 IST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

build.gradle:

 dependencies {
          classpath "com.android.tools.build:gradle:3.2.0-beta05"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'io.fabric.tools:gradle:1.+'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

Project structure dialog


Solution

  • The minimum supported version of android plugin for Gradle 3.2.0+ requires Gradle version 4.6 or higher. If you want to use Gradle version 4.4, you have to downgrade your android plugin to 3.1.0.

    For detail compatibility information about plugin and gradle versions, see this https://developer.android.com/studio/releases/gradle-plugin