27

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!

Rusben Wladiskoz
  • 523
  • 2
  • 9
  • 15

4 Answers4

19

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.

Harmen
  • 841
  • 8
  • 17
  • 1
    Can you please you share what you mean by opening Android project as android project in android studio? – ceptic Nov 18 '22 at 02:55
  • 1
    In android studio, go to file, open project, navigate to the flutter project, and go to the android subfolder. You can click open and it will open the project as if it is an android project. – Harmen Nov 19 '22 at 11:47
  • 1
    Dude, you actually solved my 2 day journey with this problem. Sorry stackoverflow but normal "+1" won't express my feeling of hapiness. Bless u – Malak Jan 23 '23 at 20:09
  • 1
    I would just add to @Harmen and say that when I did this, Android Studio spent about 15-20 minutes downloading gradle related packages in the background. I didn't see the "Generate Signed Bundle or APK" option until those updates were finished. But it did work for me! – Bourne Mar 03 '23 at 04:16
4

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

Eric Duffett
  • 1,654
  • 17
  • 25
3

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/

3

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

Smaillns
  • 2,540
  • 1
  • 28
  • 40