Join Slack
Powered by
guys I hope all of you doing great anyone worked w...
# android-databinding
y
yodgor777
02/29/2020, 9:21 AM
guys I hope all of you doing great anyone worked with data binding with
https://stackoverflow.com/questions/60449644/error-kapt-an-exception-occurred-android-databinding-tool-util-loggederrorex/60452796?noredirect=1#comment106950354_60452796
I am getting following errors I have post my question stackoverflow I did not get any suitable answer I have done as suggested answer but I am still getting error any help will be vital for me
a
Anastasia Finogenova
02/29/2020, 3:25 PM
Looked at the error it says you don't have the method getLoadingVisibility in your viewmodel class and from the snippet you don't
Anastasia Finogenova
02/29/2020, 3:27 PM
Just put viewModel.loadingVisibility instead of getLoadingVisibility in your xml and remove private modifier from loadingVisibility
👍 1
k
kagomez
02/29/2020, 3:49 PM
Agreed you’re accessing the property directly; keep in mind that if you want to use two-way binding you must leave them Mutable.
6
Views
Open in Slack
Previous
Next