Skip to content

Instantly share code, notes, and snippets.

@BoxResin
Last active August 15, 2017 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoxResin/5f22b165da4cda3e4a2bb93d4b203128 to your computer and use it in GitHub Desktop.
Save BoxResin/5f22b165da4cda3e4a2bb93d4b203128 to your computer and use it in GitHub Desktop.
Android DataBinding Gradle Setting for Kotlin
// build.gradle of 'app' module.
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt' // Add this line.
android {
...
dataBinding {
enabled = true
}
}
dependencies {
...
kapt 'com.android.databinding:compiler:2.3.1' // Add this line.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment