DontPanic
DontPanic

Reputation: 2406

How to Build a Signed Bundle (AAB)?

I'm trying (unsuccessfully) to build an AAB for my app, which apparently is now required to publish in PlayStore. Using AndroidStudio V3.5.3, if I select "Build->GenerateSignedBundle/APK" and supply the signing info req'd, nothing happens: no processing, no output produced.

"Build->BuildBundle(s)/APK(s)" works, but the output is unsigned.
"Run->Run app" and "Run->Debug app" work, but same as above.

What am I missing?

I've read all the doc I can find but nothing helpful.

Upvotes: 21

Views: 39799

Answers (10)

Malith
Malith

Reputation: 571

This can happen if the key store password, key alias, or key password is wrong.

Upvotes: 0

César Santos
César Santos

Reputation: 91

Also you can just run from terminal the command from root folder:

flutter build appbundle

Upvotes: 0

Rachid Finge Jr
Rachid Finge Jr

Reputation: 1171

I had the same issue, and it turned out that the filename in Key Store Path was invalid. Sadly, Android Studio shows no error about this. I corrected the filename and then everything worked as expected.

Upvotes: 0

Willie Cheng
Willie Cheng

Reputation: 8253

Easy way to do this issue, please follow my Steps.
Step 1:
enter image description here

Step 2:
enter image description here

Step 3:
enter image description here Step 4:
enter image description here

Upvotes: 13

For those interested in CLI, you can use jarsigner

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <my-key-store>.keystore -storepass <password> app-release.aab <keysotre-alias>

Upvotes: 1

Mark Fonte
Mark Fonte

Reputation: 301

Okay I just got this and think I should be able to help. I got the exact same behavior, and it turns out that the issue was Android Studio incorrectly saved my keystore and key passwords. When I deleted the autofill and typed them in correctly, it finally worked.

Not sure why they would have the "Remember Passwords" feature if it doesn't work, and not sure why it fails silently like that. Hope this helps anyone going forward.

Upvotes: 4

Osama Remlawi
Osama Remlawi

Reputation: 2990

Simply, from Android Studio, go to:

  1. Build menu > Generate Signed Bundle / APK
  2. Choose Android App Bundle (just like the attached screenshot)
  3. Next

enter image description here

More information from here.

Good luck

Upvotes: 1

LittleBuddha
LittleBuddha

Reputation: 23

I had to restart Android Studio and rebuild. Then I had to create a new key store form scratch. Now it's working.

I'm running version 3.6.3

Hope this helps

Upvotes: 0

Vivek Sharma
Vivek Sharma

Reputation: 553

Try rebuilding project and then generating signed bundle

Upvotes: 0

Ahmed Hegazy
Ahmed Hegazy

Reputation: 12605

App bundles are an optional way to publish your app not mandatory. You can generate your signed bundle/APK from Android Studio > Build > Generate Signed Bundle / APK and follow the process...

enter image description here

Upvotes: 6

Related Questions