Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 631
DontPanic Avatar asked Jan 08 '20 13:01

DontPanic


4 Answers

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.

like image 95
Mark Fonte Avatar answered Nov 15 '22 20:11

Mark Fonte


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

like image 26
Ahmed Hegazy Avatar answered Nov 15 '22 19:11

Ahmed Hegazy


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

like image 41
Willie Cheng Avatar answered Nov 15 '22 19:11

Willie Cheng


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

like image 33
Osama Remlawi Avatar answered Nov 15 '22 18:11

Osama Remlawi