guys I hope all of you doing great anyone worked w...
# android-databinding
y
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
Looked at the error it says you don't have the method getLoadingVisibility in your viewmodel class and from the snippet you don't
Just put viewModel.loadingVisibility instead of getLoadingVisibility in your xml and remove private modifier from loadingVisibility
👍 1
k
Agreed you’re accessing the property directly; keep in mind that if you want to use two-way binding you must leave them Mutable.