breautek commented on issue #1671: URL: https://github.com/apache/cordova-android/issues/1671#issuecomment-1747737212
The Cordova CLI uses `cordova build android --release -- --packageType=apk`. I can't speak for third-party CLI's like ionic and all information below is assuming pure cordova environment. On windows, if you're using Command Prompt or Powershell, I think the intermediate `--` needs to be in quotations: `cordova build android --release "--" --packageType=apk`, for the shell to properly pass-through the arguments Also note that I believe the build output will print out all apks/bundles thats in your build output directory. So it will include text stating that it "built" a file even if that file wasn't actually built from your last command, but purely because the file already existed in the build/outputs directories. In otherwords, you should see the APK in `platforms/android/app/build/outputs/apk/release/` and you should see that printout, but you may also (incorrectly) see printouts about it building `aab` files as well. This might be a source of confusion. The command hasn't changed since it was first introduced in v10 and building both AABs and APKs is part of my workflow so I'm pretty confident it works (On Linux/Mac machines anyway). Let me know if this helps. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org