I noticed that the builds on our CI started to fail because of the following error:
Discovered plugin \"cordova-plugin-app-version\" in config.xml. Adding it
That's it, I found it.
It comes from an update to cordova cli @9.0.0 and it's append on existing projects.
The issue come from cordova-android-support-gradle-release and fixed in version latest.
So in any case, what you need to do is:
cordova plugin rm cordova-android-support-gradle-release
cordova plugin add cordova-android-support-gradle-release@latest