Problem after updating to latest kotlin version

I updated my kotlin version to 1.4.20 in project build.gradle file in Android Studio. But, i am not able sync my project. I am getting this error:

    A problem occurred configuring root project 'Modules'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find kotlin-scripting-compiler-embeddable-1.4.20.jar (org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.4.20).
     Searched in the following locations:
         https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.4.20/kotlin-scripting-compiler-embeddable-1.4.20.jar
   > Could not find kotlin-stdlib-common-1.4.20.jar (org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20).
     Searched in the following locations:
         https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.4.20/kotlin-stdlib-common-1.4.20.jar

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

I also went to Tools->Kotlin->Configure Kotlin Plugin Updates and installed the latest kotlin. Still i am getting this error. So, What could be the reason?

1 Like