You can build the Apk/AppBundle using IDE and command line.
-
Building APK/AppBundle through IDE:
Step-1
In Android Studio’s tab bar, click on
Toolsand thenFlutterand thenOpen Android module in Android Studio:
Step-2
Open Project it in New Window:

Step-3
Having opened the project, click on
Buildand thenGenerate Signed Bundle / APK ...
-
Building APK/AppBundle through command:
Step-1:
Modify your
build.gradle(app)file and include your key information there:android { compileSdkVersion 31 signingConfigs { release { storeFile file("<path-to-keys.jks>") storePassword "********" keyAlias "<key-alias>" keyPassword "********" } } buildTypes { release { signingConfig signingConfigs.release proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }Step-2:
Build AppBundle:
flutter build appbundle --target-platform android-arm,android-arm64,android-x64 --obfuscate --split-debug-info=/<directory>Build APK:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --obfuscate --split-debug-info=/<directory>