Kotlin gradle compilation is kind of borken in 1.1.2

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.

1 Like

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

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.