Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter How to make release version in Android Studio?

By default Android Studio use debug mode when building Flutter application. You can build the release version with the command line, see How to optimize the Flutter App size?

    flutter build apk --release

Now: how to configure Android Studio to do the same, when I run the application (Shift+F10)? I can't find this setting...

like image 627
Serge Breusov Avatar asked Jun 23 '18 11:06

Serge Breusov


People also ask

How do I change the Android version on flutter?

How to update app version in Flutter. To update the app version in Flutter, you can simply open the pubspec. yaml file and then update the version tag. Inside the version tag, just increase the build number (for Android) or CFBundleVersion (for iOS).


1 Answers

You have to edit the run configuration:

Open the run configuration:

Open the run configuration

Add the --release flag:

Add the --release flag

Note that using the --release flag is not supported when you build with the Android Emulator.

like image 70
boformer Avatar answered Sep 17 '22 17:09

boformer