For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  • Prior knowledge of generating unique key store files for your application ( Reference links: Generating key store for your Android application)

  • Changing the App name

  • Changing App Logo (Ref Link: Changing app logo in Flutter)

  • Prior knowledge of app bundle creation for publishing in the Play Store

  • Terms and Conditions and Privacy Documents for your application

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.

  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

Was this helpful?