Home > Net >  How to upgrade Android Gradle Plugin on MacOS?
How to upgrade Android Gradle Plugin on MacOS?

Time:08-02

I try build AAB Android Package for Flutter app using Android Studio on Mac. But when I try do it, I get error like this: enter image description here I see a lot of solutions, but it works or Windows, or on pure java/kotlin solution (not Flutter)

How to update Android Gradle Plugin? My Gradle settings looks like this: enter image description here

CodePudding user response:

Open build.gradle in the Android folder in your project. Then you can see a gradle version specified in it. Change it to the required version and try again

dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

CodePudding user response:

Finally I found solution. I cannot make bundle from flutter project, but I can do it from android part of flutter project. If I open my solution on main directory of repo I see: enter image description here

But Generate Signed Bundle / APK return error like in image from question post. enter image description here

Moreover, AGP Upgrade Assistant... not working at all (nothing happen after press it).

But if I open project at android folder inside root of repo, on top menu of IDE I see other options like this:

enter image description here

And: enter image description here

And these two features works as I expected.

  • Related