# Kotlin DSL syntax error for build.gradle.kts

**URL:** <https://discuss.kotlinlang.org/t/kotlin-dsl-syntax-error-for-build-gradle-kts/4944>\
**Category:** Uncategorized\
**Created:** [October 11, 2017, 1:53am UTC](https://discuss.kotlinlang.org/t/kotlin-dsl-syntax-error-for-build-gradle-kts/4944 "2017-10-11T01:53:14Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![jstuyts](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/jstuyts/32/2141_2.png) [@jstuyts](https://discuss.kotlinlang.org/u/jstuyts)\
**Post date:** [February 8, 2018, 5:54pm UTC](https://discuss.kotlinlang.org/t/kotlin-dsl-syntax-error-for-build-gradle-kts/4944/13 "2018-02-08T17:54:06Z")

</div>

Using the currently stable versions (IntelliJ IDEA 2017.3.4, Gradle 4.5.1 and Kotlin 1.2.21) on Windows 10, I was able to resolve it by following these steps:

- Exit IDEA.
- If needed, update the Gradle wrapper. Repeat the following command until Gradle says it is up to date: `./gradlew wrapper`
- Delete folder `.gradle`
- Start IDEA.

It still worked after I restarted IDEA.

---

_[View the full topic](https://discuss.kotlinlang.org/t/kotlin-dsl-syntax-error-for-build-gradle-kts/4944)._
