Try either to upgrade Android Studio or change AGP version to the stable version like for example 7.2.1 in the project’s build.gradle file and sync the project:
buildscript {
//...
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
// ...
}
}
You can refer this table, that lists which version of Gradle is required for each version of the Android Gradle plugin.
Or this table that lists which version of the Android Gradle plugin is required for each version of Android Studio.