build.gradle:
dependencies {
...
classpath 'com.android.tools.build:gradle:7.1.1'
...
}
gradle-wrappper.properties
...
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
...
Note :
Change it on android gradle folder to make sure everything will be alright,OKAY!
Don`t forget to upgrade your project sdk version to latest version