title: Android Studio 4.2 - Kotlin version 1.5.0 error and endless loading for suggestions in Project Structure window
body: <p>And what does it mean?</p>
  <p><a href="https://i.stack.imgur.com/IJdyH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IJdyH.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/yNuFe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yNuFe.png" alt="enter image description here" /></a></p>
  <p>I tried to change <code>ext.kotlin_version = '1.5.0'</code> to <code>ext.kotlin_version = '1.5.0-release-764'</code>
  but in this case gradle project fails to build with <code>Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.</code></p>
  <p><strong>UPDATE</strong> <code>ext.kotlin_version = '1.5.0'</code> - also doesn't work, same error and warning</p>
  <p>build.gradle:</p>
  <pre><code>buildscript {
      ext.kotlin_version = '1.5.0'
  
      repositories {
          google()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:4.2.0'
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
      }
  }
  
  allprojects {
      repositories {
          google()
      }
  }
  </code></pre>
  <p>gradle-wrapper.properties:</p>
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
  </code></pre>
  <blockquote>
  <p>Could not resolve all artifacts for configuration ':classpath'.
  Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0.
  Searched in the following locations:
  - <a href="https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0/kotlin-gradle-plugin-1.5.0.pom" rel="noreferrer">https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0/kotlin-gradle-plugin-1.5.0.pom</a>
  If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to
  adjust the 'metadataSources { ... }' of the repository declaration.</p>
  </blockquote>
  <p><strong>UPDATE 2</strong></p>
  <p>I had to add <code>mavenCentral()</code> to make it work, though warning is still there but it builds</p>
  <p>Also another issue if 4.2 version is endless loading for suggestions in Project Structure window after you updated version of one dependency</p>
  <p><a href="https://i.stack.imgur.com/irX9I.png" rel="noreferrer"><img src="https://i.stack.imgur.com/irX9I.png" alt="enter image description here" /></a></p>