Start with a properly configured gradle project.
In your project-local (not top-level) build.gradle
append extensions plugin declaration below your Kotlin plugin, on top-level indentation level.
buildscript {
...
}
apply plugin: "com.android.application"
...
apply plugin: "kotlin-android"
apply plugin: "kotlin-android-extensions"
...