Problems after the upgrade to Android Flamingo and Capacitor 5.0.3

Hi i recently upgraded capacitor to 5.0.3

and i have this modules:

@capacitor/android”: “^5.0.3”,
@capacitor/browser”: “^5.0.2”,
@capacitor/camera”: “^5.0.2”,
@capacitor/core”: “^5.0.3”,
@capacitor/device”: “^5.0.2”,
@capacitor/ios”: “^5.0.3”,
@capacitor/push-notifications”: “^5.0.2”,
@capacitor/splash-screen”: “^5.0.2”,

ios compile all correctly

when i try to build the project in Android studio ( Android Studio Flamingo | 2022.2.1 Patch 1 )

i fail to build
i have several error in gradle build file

Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU

what i can try to solve? i think is some problems with versions

gradle 7.4.2

if i try to upgrade gradle to 8.0.2

i have another error in capacitor generated project

Namespace not specified. Please specify a namespace in the module’s build.gradle file like so:

android {
namespace ‘com.example.namespace’
}

(but Build.VERSION_CODES.TIRAMISU continue to be undefined)

My mistake
i forgot to upgrade capacitor/cli

I get this Namespace not specified error as well but I did upgrade the capacitor/cli ?