Google Play Store has updated the target API level requirements. All app submissions are required to target Android 12 (API level 31) or higher. Cordova developers also need to upgrade to cordova-android 11.0.0. Check out following link for cordova update instructions.
Once we update to cordova version 11 there are a few dependencies which also need to be updated.
Android SDK Build Tool version should be updated to min 32.0.0. Go to SDK Manager -> Android SDK -> SDK Tools (select show package details checkbox) and make sure 32.0.0 is installed. If not, select and install it.
We also need to update java version to java 11 otherwise you will see an error as following when compiling the APK.
Android Gradle plugin requires Java 11 to run.
If its an old project, delete previous platform and add new by specifically specifying the version
cordova platform remove android cordova platform add firstname.lastname@example.org
For new projects simply add the platform as following
cordova platform add email@example.com