I have the simplest gradle project configured using intellij for kotlin 1.2.10. Here is my build.gradle file:
buildscript { ext.kotlin_version = \'1.2.10
In my case, I tried all @alisabzevari options including given in comment, but It didn't work,
my mistake I added java file also in src/kotlin/ folder, later I converted java file to kotlin file. and Voila! It works.
src/kotlin/
May be it will help somebody.