Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Android gradle plugin to version 3.2.0 or higher

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

like image 530
Alpit Panchal Avatar asked Apr 10 '26 15:04

Alpit Panchal


1 Answers

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
like image 80
Mahima Sanketh Avatar answered Apr 13 '26 04:04

Mahima Sanketh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!