Can’t create new Kotlin project after updating to Android Studio 4.2

The error is clear Gradle was unable to find the library that you declared

Possible fixes


Project -> build.gradle

//update it
dependencies {
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30"

Edited kotlin has released stable version of version 1.5.0 last night you can use this version to stay up-to-date

dependencies {
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0"

Leave a Comment