I am trying to try out Kotlin and the Kotlin Android extensions in Android Studio. I have tried this both in Android Studio v 1.5.1 on Ubuntu 14.04, and in Android Studio v
Add kotlin-android-extensions in our buildscript's dependencies:
1. In your project-level build.gradle
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}
and apply the kotlin-android-extensions plugin:
2. In your module-level build.gradle
apply plugin: 'kotlin-android-extensions'
Original answer:
Most likely it's a bug in the Kotlin plugin. I've filed an issue on their tracker.