I started off with the tutorial for learning Kotlin in IntelliJ.When I tried running the example i.e
IntelliJ
fun main(args: Array) { prin
For me, it was due to the project missing Gradle Libraries in its project structure.
Just add in build.gradle: apply plugin: 'idea'
apply plugin: 'idea'
And then run: $ gradle idea
$ gradle idea
After that gradle rebuilds dependencies libraries and the references are recognized!