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:
- Add the –release flag:
- 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’s folder. Then, select the build.gradle (Module: app) in the Project panel:
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:
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.