capacitor ionic app version code example
Example 1: ionic capacitor android
// if you didn't run before
ionic build
// then
npx cap add android
npx cap sync
Example 2: how to add capacitor in ionic
ionic start myApp tabs --capacitor
cd myApp
// if you didn't run before
ionic build
// then
npx cap add android
npx cap sync
ionic start myApp tabs --capacitor
cd myApp