'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



Solution 1:[1]

You should build your app using

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eric