Cordova Android 11, which will support API 31 is not released yet. Still no official support for API 31 in Cordova Android 10.
The next release will support API 31 and also API 32. But there are still few minor things to fix before the release.
If you build with the CLI you can use the nightly build.
You can follow the release here:
https://github.com/apache/cordova-android/projects/3
You can change API target yourself, but it might not work if you use the old Cordova.
We have different information.
vvvvv@root-home:~$ cordova -v
11.0.0
And this is not a nightly build. I am currently changing the SDK version in the config.xml file and build in Cordova.