title: Could not resolve compiler classpath. Check if Kotlin Gradle plugin repository is configured in project ':app'
body: <p><strong>I have the following errors when building the project.
  here is the error</strong></p>
  
  <blockquote>
    <blockquote>
      <p>Executing tasks: [clean, :app:assembleDebug] in project E:\ReloTrack</p>
    </blockquote>
    
    <p>Could not resolve compiler classpath. Check if Kotlin Gradle plugin
    repository is configured in project ':app'.</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: Could not determine the dependencies of task ':app:compileDebugKotlin'.</p>
    
    <blockquote>
      <p>Could not resolve all files for configuration ':app:kotlinCompilerClasspath'.
      Could not find org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4-M1.
       Searched in the following locations:</p>
      
      <ul>
      <li><a href="https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.pom" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.pom</a></li>
      <li><a href="https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.jar" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.jar</a></li>
      <li><a href="https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.pom" rel="nofollow noreferrer">https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.pom</a></li>
      <li><a href="https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.jar" rel="nofollow noreferrer">https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.jar</a></li>
      <li><a href="https://jitpack.io/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.pom" rel="nofollow noreferrer">https://jitpack.io/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.pom</a></li>
      <li><a href="https://jitpack.io/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.jar" rel="nofollow noreferrer">https://jitpack.io/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.4-M1/kotlin-compiler-embeddable-1.4-M1.jar</a>
      Required by:
       project :app</li>
      </ul>
    </blockquote></li>
    <li><p>Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>BUILD FAILED in 8s</p>
  </blockquote>
  
  <p><strong>And here is my gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'com.google.gms.google-services'
  
  
  
  android {
      compileSdkVersion 29
      buildToolsVersion "29.0.3"
  
      defaultConfig {
          applicationId "com.webline.relotrack"
          minSdkVersion 22
          targetSdkVersion 29
          versionCode 1
          versionName "1.0"
  
          testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
  
  
          sourceCompatibility kotlin_version
  
          targetCompatibility kotlin_version
  
      }
  
  // To inline the bytecode built with JVM target 1.8 into
  // bytecode that is being built with JVM target 1.6. (e.g. navArgs)
  
  
      kotlinOptions {
          jvmTarget = "1.8"
      }
  
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72"
      implementation 'androidx.core:core-ktx:1.2.0'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'com.google.firebase:firebase-database:19.3.0'
      implementation 'com.google.firebase:firebase-messaging:20.1.6'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      implementation 'androidx.navigation:navigation-fragment:2.2.2'
      implementation 'androidx.navigation:navigation-ui:2.2.2'
      implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
      implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2'
      implementation 'androidx.navigation:navigation-ui-ktx:2.2.2'
      testImplementation 'junit:junit:4.13'
      androidTestImplementation 'androidx.test.ext:junit:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  
      //Libraries
      implementation 'androidx.appcompat:appcompat:1.1.0'
      implementation 'com.google.android.material:material:1.1.0'
      implementation 'com.karumi:dexter:6.1.0'
      implementation 'com.firebaseui:firebase-ui-database:4.3.1'
      implementation 'com.firebaseui:firebase-ui-auth:4.3.2'
      implementation 'com.github.d-max:spots-dialog:1.1@aar'
      implementation 'com.google.android.gms:play-services-location:17.0.0'
      implementation 'com.github.mancj:MaterialSearchBar:0.8.2'
      //RxJava2
      implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
      implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
      //Retrofit
      implementation 'com.squareup.retrofit2:adapter-rxjava2:2.8.1'
      implementation 'com.squareup.retrofit2:converter-gson:2.8.1'
  
      implementation 'io.paperdb:paperdb:2.6'
  </code></pre>
  
  <p>}</p>