6Valley

View Categories

App Build & Release

Table of Contents

Build for Android #

Run the following command to build the APK 

 flutter build apk

This command will compile your Flutter code and generate the APK file. You can find the APK in the build/app/outputs/flutter-apk directory inside your project folder. The APK file will be named something like app-release.apk or app-debug.apk.

By using the above command, you will get a larger merged apk with this. But you can split them with this command

flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

With this command, Flutter will generate three APKs, use one of them which is compatible with your device.

For deploying it please follow this documentation: https://docs.flutter.dev/deployment/android