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 ..
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 ..