How to build signed apk from Android Studio for Flutter


Is there a way to build an apk for flutter in Android Studio?

I have seen this guideline:
But here flutter console is used to build apk.


You can build the Apk/AppBundle using IDE and command line.

  • Building APK/AppBundle through IDE:


    In Android Studio’s tab bar, click on Tools and then Flutter and then Open Android module in Android Studio:

    enter image description here


    Open Project it in New Window:

    enter image description here


    Having opened the project, click on Build and then Generate Signed Bundle / APK ...

    enter image description here

  • Building APK/AppBundle through command:


    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'), ''


    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>

Answered By – CopsOnRoad

Answer Checked By – Senaida (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *