About building with Android API level 31 in Unity

We are developing in Unity.
The terms have changed on the Google Play Console and API level 31 or higher is now required.
Until then, I was building with API level 30, but when I set it to 31, a Gradle error was output.

The build settings are as shown in the attached image.
I have another Firebase plugin installed.
The Unity I’m using is 2020.3.1f1.

AndroidSDK and Gradle tools have not changed since API level 30.

What is the solution here?
thank you.

+1
I’m having the same issue. I just updated to 2021.3.16f1 and it only supports to sdk 30, but in trying to upload my app, google rejects it saying it must be 31.