How to Make Release APK From Android Studio In Flutter ?

3 min read
How to Make Release APK From Android Studio In Flutter
How to Make Release APK From Android Studio In Flutter

By default Android Studio use debug mode when building Flutter application. So In this article, we will go through How to make Release APK From Android Studio in Flutter.

How to Make Release APK From Android Studio In Flutter?

We can generate Debug APK using the below code snippet.

flutter build apk --debug

We can generate Release聽APK using the below code snippet.

flutter build apk --release

Users need to edit the configuration like below.

Open the run configuration:

Run Configuration Flutter
Run Configuration Flutter
  • Add the –release flag:
Release Flag Flutter-Release APK From Android Studio
Release Flag Flutter
  • Note that using the –release flag is not supported when you build with the Android Emulator.

Android Studio, open the existing android/folder under your app鈥檚 folder. Then, select the build.gradle (Module: app) in the Project panel:

Build.Gradle Flutter-Release APK From Android Studio
Build. Gradle Flutter

Next, select the build variant. Click Build > Select Build Variant in the main menu. Select any of the variants in the Build Variants to panel debug is the default:

Build.Gradle Flutter-Release APK From Android Studio
Build.Gradle Flutter

Conclusion:

Don’t forget to see How to Build Signed APK From Android Studio For Flutter?聽

If you have any queries regarding flutter development, Do let us know in the comments 馃檪

So in this article, we have been through How to Make Release APK From Android Studio in Flutter.

Do share your valuable聽feedback/suggestion聽for the same.

So Keep Learning聽!!! Keep聽Fluttering聽!!!

FlutterAgency.com聽is our portal Platform dedicated to Flutter Technology and聽Flutter Developers. The portal is full of cool resources from Flutter like聽Flutter Widget聽Guide,聽Flutter Projects,聽Code libs聽and etc.

FlutterAgency.com is one of the most popular online portals dedicated to聽Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge of聽Flutter.

8 comments

    1. Dear YO,

      Hope this message finds you well !!!

      Thanks for being through our article along with your comments on the same.

      Though Debug APK will work there might be a difference between DEBUG APK and Release APK in terms of design and size.

      While Passing APK to Tester it’s an recommended to pass Release APK.

      Drop us your valuable suggestion/feedback to serve you much better.

      Warm Regards,
      Flutter Agency

Leave a Reply