I am new to android development, and I have been using the command line tools to create an android project. I followed all the instructions given in the tutorial at android
I use:
npx jetifier
this fix the problem.
ref: Cannot build Ionic App on Android once installed BackgroundGeolocation Plugin with Capacitor