sdk35 required AGP 8.6.0 or newer update your agp version and try again
https://developer.android.com/build/releases/gradle-plugin#api-level-support