I\'m trying to use Kotlin with Butterknife for my Android Application.
Here is my build.gradle
dependencies {
...
compile \'com.jakewharton:b
In your gradle:
compile 'com.jakewharton:butterknife:8.8.0'
kapt "com.jakewharton:butterknife-compiler:8.8.0"
In your activity
@BindView(R.id.toolbar)
lateinit var mToolbar: Toolbar
Of course, remember ButterKnife.bind(this)
and apply the plugin on the top of your app.gradle apply plugin: 'kotlin-kapt'
Check full example
Full Link: https://github.com/JetBrains/kotlin-examples/tree/master/gradle/android-butterknife