Reputation: 118
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
Reputation: 10512
cordova build android --release -- --keystore=ABC.keystore --storePassword=123 --alias=ABC --password=123 --packageType=bundle
cd platforms/android
./gradlew bundleRelease
platforms/android/app/build
and you'll find .apk
file in apk
folder as well as .aab
in bundle/release
.Upvotes: 4
Reputation: 10646
You should build your app using
cordova build android --release -- --packageType=bundle
Upvotes: 6