a better way and no need to uninstall the SDK 33: Project settings → Platforms → Android SDK → Set API level to android-31