I'm trying some databinding with kotlin. but the B...
# announcements
s
I'm trying some databinding with kotlin. but the BR.class is not generating any variables related to the data class. I have included the databinding library too. Any reason how this is happening?
mainBinding.setVariable(BR.temp, temp)
BR.temp gives unresolved reference
g
Do you have
kapt "com.android.databinding:compiler:$"
in your dependencies?
s
im currently using
kapt 'com.android.databinding:compiler:3.0.1'
g
Do you have data binding enabled in all your modules?
s
The main reason for error was incorrect setters in the data class which prevented two way data binding and hence the build was not completed.