How to build an Android APK file without using Android Studio in a Capacitor project?

In case someone on a Mac Big Sur is still having issues, run this (same as the chosen answer, but with ‘sudo’ added)…

sudo ionic capacitor copy android && cd android && sudo ./gradlew assembleDebug && cd ..

1 Like