Last active
August 15, 2017 09:53
-
-
Save BoxResin/5f22b165da4cda3e4a2bb93d4b203128 to your computer and use it in GitHub Desktop.
Android DataBinding Gradle Setting for Kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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