xxxxxxxxxx
npm install -g @ionic/cli native-run
ionic cap run android -l --external
xxxxxxxxxx
npm install @capacitor/android
npx cap add android
npx cap run android
xxxxxxxxxx
// if you didn't run before
ionic build
// then
npx cap add android
npx cap sync