Flutter Android gradle plugin to version 3.2.0 or higher

6.2k views Asked by At

I have already update the latest Android Gradle version but still showing the error when generating the signed bundle.

generating signed bundle requires you to update the android gradle plugin to version 3.2.0 or higher

enter image description here

Below i have share the version details.

buildscript {
ext.kotlin_version = '1.6.21'
repositories {
    google()
    mavenCentral()
}

dependencies {
    classpath 'com.android.tools.build:gradle:7.0.4'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:4.3.10'
}

}

distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip

Android studio version

Android Studio Bumblebee | 2021.1.1 Patch 3 Build #AI-211.7628.21.2111.8309675, built on March 16, 2022 Runtime version: 11.0.11+0-b60-7772763 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.4 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: Dart (211.7817), org.jetbrains.kotlin (211-1.6.21-release-334-AS7442.40), io.flutter (66.0.1)

Flutter version

Flutter 2.10.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5f105a6ca7 (3 months ago) • 2022-02-01 14:15:42 -0800 Engine • revision 776efd2034 Tools • Dart 2.16.0 • DevTools 2.9.2

1

There are 1 answers

0
Mahima Sanketh On

Change Your Build Gradle File Like Below

I think you are not in the latest version yet.

I Used this command to upgrade most the latest version

flutter channel dev

Now you can change your Build Gradle(Android Level)

   buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.4.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.4.0'
    }
}
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip