ionic build
is required every time you make changes and want them to be updated on the native side.
ionic capacitor add android
only once while adding a new platform
After this, use these for future changes
ionic build && ionic capacitor sync android
(if you have added any new package/plugin)
ionic build && ionic capacitor copy android
(if only code has been changed)
Note: ionic capacitor
and npx cap
both can be used..
Reference Docs Capacitor
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…