Gradle Kotlin Plugin

I'm getting the same errors. The difference between Gradle and IDEA compiler errors and warnings could be caused by different Kotlin versions used. The Gradle plugin in your case uses 0.5.1. What IDEA plugin version are you using and where from did you install it? And what IDEA version are you running? Unfortunately, I couldn't use any since IDEA plugin 0.5.116 and 0.5.1 (was taking them from TeamCity) are incompatible with IDEA 126.232 I'm running right now. I also noticed TeamCity declares M5 to be 0.4.493 and not 0.5.1 which isn't even tagged in TeamCity. To tell you the truth, I'm confused what is M5 and how come JetBrains Artifactory repository versioning is different from TeamCity tags.