In my case, the kotlin plugin has not been updated as @ piotrek1543 said in another answer.
In addition to this, build.gradle had the old Kotlin version number 1.0.1-2 , and IntelliJ said in a warning from above to upgrade to the current version in 1.0.4 bundle.
Now with this version of kotlin the error has disappeared:
ext.kotlin_version = '1.0.4'
source share