I followed these steps:
In top menu bar, click on Build > Clean Project.
In top menu bar, click on Project > Build Bundle(s)/APK(s) > Build Bundle(s).
The Event Log pane will give the time and status of your build:
08:19 Build Bundle(s)
App bundle(s) generated successfully for 1 module:
Module 'app': locate or analyze the app bundle.
You can click on "locate" to show the .aab file in the Finder window, in platforms/android/app/build/outputs/bundle/debug/app-debug.aab
After this I followed:
In top menu bar, Build > Generate Signed Bundle / APK...
You'll get the options to sign an Android App Bundle (top option) or an APK. The Android App Bundle is selected by default. Click on Next.
The Generate Signed Bundle or APK window has several fields to fill out. "app" should be in the Module field.
I filled out the fields.
When all is said and done, Event Log did not display anything regarding the signed bundle. There is no change in the .aab file (I checked the date/time). I kept the export encrypted kit location as Desktop, but there is no .pepk file there.
Event Log does not display any errors or warnings.
(I wrote a complete article on my process here: https://iphonedevlog.wordpress.com/2019/09/17/making-an-android-app-bundle-aab-file-from-a-cordova-project/)
Generating an AAB in Android Studio To create an AAB binary locally using Android Studio, open the Build menu, then choose “Generate Signed Bundle / APK.” Follow the prompts to sign the AAB with your keystore file. For complete details, view the Android documentation.
In the menu bar, click Build > Generate Signed Bundle/APK. In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next. Below the field for Key store path, click Create new.
Generate a signed APK file, open the Build menu from the toolbar and select Generate Signed Bundle/APK. Select between creating an Android App Bundle and APK file. Enter Key store path, Key store password, Key alias, and the Key password.
Step 1: Go to Android Studio -> Build ->Generate Signed Bundle. Select Android App Bundle on the pop screen and select Next. Step 2: Enter the KeyStore path where the KeyStore is stored or Create a new KeyStore as seen below. Step 4: Select the release mode from the list and select finish.
I faced the same issue. I solved it by trying to sign it as apk instead of bundle and in that case android studio gave me log details. In my case, the problem was the key password that was wrong. After i confirmed that I was able to successfully build a signed apk, I tried to build a bundle and it worked.
In my situation the password was wrong. I added extra space.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With