I found a lot of things about the subject, but not enough to fix it, so here I go.
I just arrived on a new project and they have a heavy problem :
import kotlinx.android.synthetic
is unresolved by Android Studio. The project runs, and there is no problem during the build, but Android Studio shows me a lot of errors in the code because it does not recognize the layout. Which means no shortcut for the layout/components.
We have, I think, already import the correct plugin :
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'org.jetbrains.kotlin.android.extensions'
I tried removing apply plugin: 'org.jetbrains.kotlin.android.extensions', but it doesn't help. We also have classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" in our buildscript dependencies.
Not an expert in Gradle but open for any help!