title: Warning "Kotlin plugin version is not the same as library version" (but it is!)
body: <p>I have an Android studio project in which I have added a Java library module, which I call <code>core</code>. My three Gradle build files look like this.</p>
  
  
  
  <p>project/build.gradle</p>
  
  <pre class="lang-gradle prettyprint-override"><code>buildscript {
      ext.kotlin_version = '1.2.40'
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.1'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>core/build.gradle</p>
  
  <pre class="lang-gradle prettyprint-override"><code>apply plugin: 'java-library'
  apply plugin: 'kotlin'
  
  dependencies { 
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7"
      ...
  }
  </code></pre>
  
  <p>app/build.gradle</p>
  
  <pre class="lang-gradle prettyprint-override"><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-android-extensions'
  
  android { ... }
  
  dependencies {
      implementation project(':core')
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
      implementation 'com.android.support.constraint:constraint-layout:1.1.0'
      implementation 'com.android.support:appcompat-v7:27.1.1'
  
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
      testImplementation 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>The problem I have is that, in <code>core/build.gradle</code>, the <code>kotlin-stdlib-jdk7</code> line is giving me the warning <code>Plugin version (1.2.40) is not the same as library version (jdk7-1.2.40)</code>. I have tried changing it to:</p>
  
  <p><code>implementation "org.jetbrains.kotlin:kotlin-stdlib"</code></p>
  
  <p><code>implementation "org.jetbrains.kotlin:kotlin-stdlib:1.2.40"</code></p>
  
  <p><code>implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.40"</code></p>
  
  <p><code>implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"</code></p>
  
  <p><code>implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"</code></p>
  
  <p>But the warning is still there. The build still runs successfully, and I know I can surpress the warning without any problems and ignore it, but I really want to know why this is happening and how I can get rid of it. I am using Android Studio 3.0.1. Does anyone know of a solution to this?</p>