This is the error I'm getting:
The project is using an incompatible version (AGP 7.3.1) of the Android Gradle plugin. Latest supported version is AGP 7.2.1
This error occurs when I attempt to sync the project with gradle files, but my build.gradle and project structure both specify version 7.2.1 as seen below.
build.gradle:
buildscript {
dependencies {
classpath("com.android.tools.build:gradle:7.2.1")
}
}
Gradle: 7.6.2 Android Studio: Chipmunk 2021.2.1
I have tried invalidating caches, reloading from disk, gradle clean etc. I have been unable to find any mention of version 7.3.1 anywhere, only within android studio build outputs.
What could possibly be causing this?
Update your Android Studio and you will be able to select AGP 7.3.1 and newer versions. Your Android Studio version is a bit old.
Hope it helps!