title: Error: gradle version 2.2 is required. Current version is 6.5.1
body: <p>I am coding a Java project in Android studio 4.0.
  This is my current Gradle version (6.5.1). (In gradle-wrapper.properties)</p>
  <pre><code>distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
  </code></pre>
  <p>error said:</p>
  <pre><code>Studio gradle version 2.2 is required. Current version is 6.5.1.
  </code></pre>
  <p>Then I turn my gradle version into 2.2, and it gives me another error:</p>
  <pre><code>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.
  </code></pre>
  <p>I've tried everything to do and read questions and articles. But seeing no hopes.
  <a href="https://i.stack.imgur.com/ndrq8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ndrq8.png" alt="enter image description here" /></a></p>
  <p>I am new to android app design. Any advise will be appreciated!</p>
  <p>update 1(build.gradle):</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion &quot;22.0.1&quot;
  
      defaultConfig {
          applicationId &quot;com.pcschool.map&quot;
          minSdkVersion 21
          targetSdkVersion 22
          versionCode 1
          versionName &quot;1.0&quot;
      }
      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'
  }
  </code></pre>