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: 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:
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:
But Generate Signed Bundle / APK
return error like in image from question post.
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:
And these two features works as I expected.