Ionic 5 to increase Android minSdkVersion from 21 to version 23

I’m trying out Ionic 5 & installed some plugins on it.
ionic capacitor run android -l --external

and I get a Error:

> Task :app:processDebugMainManifest FAILED
AndroidManifest.xml Error:
uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library []

How do I increase the minSdkVersion of the project to 23?

You should be able to edit that parameter in the AndroidManifest.xml file.

editing min/max/target sdk properties from the AndroidManifest.xml is deprecated, should be handled by gradle now. In Capacitor apps in particular there is a variables.gradle file where all the variables can be configured, including the minSdkVersion

Anyway, they also asked on StackOverflow and got an answer there