I am trying to generate a release apk file using Cordova 11 with the build.json file. Cordova generates an AAB file instead of an APK file. Here is the command I have used:
cordova build android --release
Finally, I have the answer! Use:
cordova build android --release -- --packageType=apk
Got this answer from a youtube user called Harag. Thank you Harag.
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