Cordova: Create .aab bundle file in cordova @android development

Google recommends using the new Android App Bundle format for apps uploaded to Google Play. When you upload an APK a warning is displayed which encourages to use the newer format.

You should be able to generate the bundle using command prompt (cmd)

cordova build android --release -- --packageType=bundle 
With Android Studio:
The steps are:
  1. Launch Android Studio
  2. Go To Import Project (Eclipse ADT, Gradle, etc).
  3. Select Android platform directory in your project (/platforms/android).
  4. Wait for finish the Sync
  5. Go to Build > Generate Sign Bundle
  6. Complete Signing info
  7. Upload de .aab file generated (in path /platforms/android/outputs/
Note: if you have problem whith minSDK version, fix this and make a resync

Share this post:

Share on facebook
Share on twitter
Share on linkedin
Share on email
Amitpal Singh
Amitpal Singh
Freelance website and application developer. Working from Sangrur Punjab in India.
Follow Amitpal on:


Create your account and post ad