Top

Probot documentation

How to build APK or AAB ?


There are 2 ways to build Apk

  1. Through Command Line
  2. By Opening in Android Studio

Through Command Line :


  • Copy below command and paste it in your terminal and enter
    flutter build apk --release

  • By Opening in Android Studio :


    1. Open Your Android folder in android studio.
    2. Now wait until your gradle build
    3. From Top Menu bar click on Build
    4. In that click on Generated Signed Bundle / APK...
    5. Now Select Option between Android App Bundle (AAB) or APK. If you want to check app then select APK or if you want to upload on google play store then select Android App Bundle (AAB)
    6. After select option click on Next button.
    7. Now time for key store if you don't have click on Create new...

    8. NOTE :
      Remeber Your keystore is used when you upload the AAB on play store and it is one time used once your aap upload with that keystore and your loose the keystore and try to generate another your AAB will not be uploaded


      NOTE :
      Alose Remeber your alias name and password is used when try to generate SHA key for release

    9. In that give the path where you keystore will be saved, give the password for keystore and give alias name and alias password and click on OK button.

    10. If you have already create keystore then select the path and give the alias name and password and click on Next button.
    11. Now select release in Build Variants and click on Finish button.

    12. It take some time and generate your apk show in bottom right where it is located.