Could not resolve all artifacts for configuration ':classpath'. I Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.

 If you got following problem at Android Studio after update 4.2: 

A problem occurred configuring root project 'ProjectName'.

> Could not resolve all artifacts for configuration ':classpath'.

   > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.

     Searched in the following locations:

       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom

       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom

     Required by:

         project :


Possible solution:

 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html


Then solution is following: 

Go to project level gradle file and replace ext.kotlin_version = "1.5.0" with following line of code 

ext.kotlin_version = "1.5.0-release-764"

Screenshot after fixed the problem:


and finally sync the gradle again. Hopefully it'll solve the problem.

Happy coding!!!

Post a Comment

0 Comments