title: Kotlin stuck on version 1.3.31 Android Studio project
body: <p>I'm new to this, I bought a Flutter project and am trying to start it in Android Studio.</p>
  <p>The project used an older version of Android Gradle and I updated it to 7.0.2. But now when I try to build, I get the error:</p>
  <p><a href="https://i.stack.imgur.com/yeqq2.png" rel="nofollow noreferrer">The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.40 and higher.</a></p>
  <p>I checked the file android/<strong>build.gradle</strong> ext.kotlin_version = '1.3.50'</p>
  <p>Here is the complete file:</p>
  <pre><code>buildscript {
      ext.kotlin_version = '1.3.50'
      repositories {
          google()
          jcenter()
          maven {
            url &quot;https://dl.bintray.com/kotlin/kotlin-eap/&quot;
          }
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:7.0.2'
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
          classpath 'com.google.gms:google-services:4.3.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = &quot;${rootProject.buildDir}/${project.name}&quot;
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p>I tried to change many versions but always the result is the same. I checked a lot of answers but still couldn't find what else could be the reason.</p>