Michael Njuguna
Michael Njuguna

Reputation: 118

How to create an aab file in apache cordova?

i have an apache cordova project but i want to build an aab file not apk,please help

In apache cordova ive used this command cordova run android to create an apk but i want an aab file instead

Upvotes: 6

Views: 6328

Answers (3)

Michael Njuguna
Michael Njuguna

Reputation: 118

I used android studio to sign my apps and create aab files

Upvotes: 0

Daniel Danielecki
Daniel Danielecki

Reputation: 10512

  1. cordova build android --release -- --keystore=ABC.keystore --storePassword=123 --alias=ABC --password=123 --packageType=bundle
  2. cd platforms/android
  3. ./gradlew bundleRelease
  4. Take a look into platforms/android/app/build and you'll find .apk file in apk folder as well as .aab in bundle/release.

Upvotes: 4

Eric
Eric

Reputation: 10646

You should build your app using

cordova build android --release -- --packageType=bundle

Upvotes: 6

Related Questions