how to check ionic android version in capacitor code example
Example 1: capacitor change app version
Android - android/app/build.gradle (you're looking for the versionName variable)
iOS - ios/App/App/Info.plist *(you're looking for the CFBundleShortVersionString key)
Example 2: ionic capacitor android
// if you didn't run before
ionic build
// then
npx cap add android
npx cap sync