Reputation: 2406
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
Reputation: 571
This can happen if the key store password, key alias, or key password is wrong.
Upvotes: 0
Reputation: 91
Also you can just run from terminal the command from root folder:
flutter build appbundle
Upvotes: 0
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
Reputation: 16233
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
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
Reputation: 2990
Simply, from Android Studio, go to:
Build
menu > Generate Signed Bundle / APK
Android App Bundle
(just like the attached screenshot)More information from here.
Good luck
Upvotes: 1
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
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...
Upvotes: 6