'Update the Android Gradle plugin to version 3.2.0 or higher / generate Flutter signed APK

I'm developing a flutter cross-platform supporting app using Android Studio.

Now I'm trying to generate signed APK for app-release but I face this following error:

'Generating signed Bundle requires you to update the Android Gradle plugin to version 3.2.0 or higher'.

How can I fix this? I have not a single clue..

Best regards!



Solution 1:[1]

You need to update your Android Gradle Plugin.

These posts should help: How to update gradle in android studio?

https://developer.android.com/studio/releases/gradle-plugin

Solution 2:[2]

Update your Android studio editor with 3.4.2 or gradle version 5.1.1 you need to update your editor. Or else only change gradle version with Click here 5.1.1 https://gradle.org/releases/

Solution 3:[3]

you can update the build.gradle file enter image description here

Solution 4:[4]

I got this error when trying to build "Generate Signed Bundle / APK" from the flutter workspace.

The solution for me was to open the android project folder in android studio (as android project) and the error is gone.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eric Duffett
Solution 2 Tarang Mishra
Solution 3 Smaillns
Solution 4 Harmen