# Problem after updating to latest kotlin version

**URL:** <https://discuss.kotlinlang.org/t/problem-after-updating-to-latest-kotlin-version/20143>\
**Category:** Android\
**Created:** [December 4, 2020, 11:55am UTC](https://discuss.kotlinlang.org/t/problem-after-updating-to-latest-kotlin-version/20143 "2020-12-04T11:55:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayeshbabuav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/jayeshbabuav/32/8194_2.png) [@jayeshbabuav](https://discuss.kotlinlang.org/u/jayeshbabuav)\
**Post date:** [December 4, 2020, 11:55am UTC](https://discuss.kotlinlang.org/t/problem-after-updating-to-latest-kotlin-version/20143/1 "2020-12-04T11:55:35Z")

</div>

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:

```auto
    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?

---

<div class="post-metadata">

**Author:** ![igor\_ganapolsky](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/igor_ganapolsky/32/5705_2.png) [@igor\_ganapolsky](https://discuss.kotlinlang.org/u/igor_ganapolsky)\
**Post date:** [April 2, 2021, 5:04pm UTC](https://discuss.kotlinlang.org/t/problem-after-updating-to-latest-kotlin-version/20143/2 "2021-04-02T17:04:12Z")

</div>

Did you put these blocks in order in your root **build.gradle** file:  
buildScript {  
repositories {  
jcenter()  
google()  
}  
}

allprojects {  
repositories {  
jcenter()  
google()  
}  
}
