Just upgraded the IDE and started to sync the gradle but IDE throwing this error.
>Solution :
plugins {
id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false
id 'org.jetbrains.kotlin.android' version '1.6.20' apply false
}
I changed the Version to the older Version and the error got cleared
Ex: ‘7.1.3’ to ‘7.0.0’.