Generate Android APKs & App Bundles

Steps to generate APKs and App bundles for Android applications

Overview

Follow the steps on this page to build the APK and IPA for deploying in Play Store and App-store.

Steps

Generate APK For Testing

  1. Follow the Flutter Installation and setup Guide and Run the Application till the Flutter pub is set up.

  2. Run the below command in your terminal from theroot of the project to generate the APK

    flutter build apk --release

Generate & Publish App Bundle To Play Store

Pre-requisites

Note: The generated key store file needs to be added to the Android/app folder of your project. This is needed for publishing the next version of your application.

Steps

  1. Add a key.properties file inside your Android folder which is a reference to your key store file. Below is the sample key.properties file.

storePassword=muktasoft
keyPassword=muktasoft
keyAlias=upload
storeFile=muktasoft.jks
  1. Run the below command in your terminal from the root of the project to generate the App bundle to publish in the play store.

flutter build app bundle

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.