If a similar kind of problem is encountered for a member variable of type LiveData then check your lambda in the XML file as for calling a function in onClick of a view "@{() -> variableName.callMethod()}" is used whereas for a variable "@{variableName.memeberVariableName}" is used.