Capacitor’s philosophy is to embrace the native project tooling and IDE’s instead of providing an abstracted config file like Cordova. As a general strategy, you’d search for “how to do X in Xcode?” or “… in Android Studio?”
For this question, setting Android version code, see here - most settings are configured in AndroidManifest.xml or the build.gradle.
Not a rant or anything … but the reason I choose Ionic was to NOT have to learn all the native features. Cordova and Ionic’s CLI on top was a great way to not have to dig into the mess of native IDEs.
Sorry but this solution doesn’t solve the problem. In my Ionic project there is no AndroidManifest.xml or build.gradle. Those files don’t exist until AFTER the Capacitor process generates the Android source. Your solution only works in a local build where you can modify that file. I’m using the Ionic cloud build and thus all the Android source is being generated on the server and I don’t have access to change that value. There MUST be some way to direct Capacitor to generate the correct value via an Ionic level configuration. I see that there is a capacitor.config.json file in the root of the Ionic project but I haven’t found any instructions on its usage.