# Kotlin gradle compilation is kind of borken in 1.1.2

**URL:** <https://discuss.kotlinlang.org/t/kotlin-gradle-compilation-is-kind-of-borken-in-1-1-2/2527>\
**Category:** Uncategorized\
**Created:** [April 26, 2017, 10:47am UTC](https://discuss.kotlinlang.org/t/kotlin-gradle-compilation-is-kind-of-borken-in-1-1-2/2527 "2017-04-26T10:47:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin-Khvan](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Konstantin-Khvan](https://discuss.kotlinlang.org/u/Konstantin-Khvan)\
**Post date:** [April 26, 2017, 10:47am UTC](https://discuss.kotlinlang.org/t/kotlin-gradle-compilation-is-kind-of-borken-in-1-1-2/2527/1 "2017-04-26T10:47:01Z")

</div>

Every time I build I get “w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions”  
Then random compilation errors in gradle. Both kotlin related and gradle itself. Like this

- “Cannot find class blablab”
- “Using kotlin incremental compilation e: TheClass.kt: (19, 19): Unresolved reference: dependency”

Deleting .gradle folder + gradle clean seems to help. Adding kotlin.incremental=false seems to stabilize things a bit.  
eap-77 worked with no problems btw.

---

<div class="post-metadata">

**Author:** ![Zeljko\_Trogrlic](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/zeljko_trogrlic/32/4251_2.png) [@Zeljko\_Trogrlic](https://discuss.kotlinlang.org/u/Zeljko_Trogrlic)\
**Post date:** [May 12, 2017, 11:10am UTC](https://discuss.kotlinlang.org/t/kotlin-gradle-compilation-is-kind-of-borken-in-1-1-2/2527/2 "2017-05-12T11:10:56Z")

</div>

Can you check is it related to this bug: [https://youtrack.jetbrains.com/issue/KT-17867](https://youtrack.jetbrains.com/issue/KT-17867)

---

<div class="post-metadata">

**Author:** ![Konstantin-Khvan](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Konstantin-Khvan](https://discuss.kotlinlang.org/u/Konstantin-Khvan)\
**Post date:** [May 12, 2017, 11:25am UTC](https://discuss.kotlinlang.org/t/kotlin-gradle-compilation-is-kind-of-borken-in-1-1-2/2527/3 "2017-05-12T11:25:51Z")

</div>

I don’t think it is related issue. I got these errors without IDEA running and fully clean folders (including .gradle and .idea)

Have not seen any errors in couple days though. Maybe changes in my build fixed it.
