flutter build apk

flutter build apk –debug (Build a debug version.)

flutter build apk –profile (Build a version specialized for performance profiling.)

flutter build apk –release (Build a release version ready for publishing to app store.)

flutter build apk –flavor (Build a custom app flavor defined by platform-specific build setup.
this requires using product flavors in android Gradle scripts and custom Xcode schemes)

flutter build appbundle –target-platform android-arm,android-arm64

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

flutter build apk –pub

flutter build apk –no-pub (whether to run flutter packages get before building the app.)

flutter build apk –build-number=1

flutter build apk –build-name=1.3.4

flutter build apk –build-shared-library (Compile to a *so file)

When building APK file, –release is the default mode.
The following command builds a release version with build number 5 and version name 0.1.0.

$ flutter build apk –build-number=5 –build-name=0.1.0

flutter install

flutter packages pub