Android Studio 3.0 and later Kotlin Android Studio 3.0 support. AS 3.0 comes with default support with Kotlin, since AS 2.3 requires a plug-in.
Android Studio Team from google and the IDEA intellij Team from JetBrain work together to make Kotlin compatible with Android Studio .
Version 3.0 currently ships with the Canary version (the preview version), and every week a new preview version (Canary 1, Canary 2 ... etc.) rolls out the corrected error messages.
So, for now, you should try the latest version of Android Studio 3.0 Canary 9.
If the problem still persists, report this error.
source share