I am coding a Java project in Android studio 4.0. This is my current Gradle version (6.5.1). (In gradle-wrapper.properties)
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
error said:
Studio gradle version 2.2 is required. Current version is 6.5.1.
Then I turn my gradle version into 2.2, and it gives me another error:
Support for builds using Gradle versions older than 2.6 was removed in tooling API version 5.0.
You are currently using Gradle version 2.2.
You should upgrade your Gradle build to use Gradle 2.6 or later.
I've tried everything to do and read questions and articles. But seeing no hopes.

I am new to android app design. Any advise will be appreciated!
update 1(build.gradle):
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.pcschool.map"
minSdkVersion 21
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.google.android.gms:play-services:7.3.0'
}