Listener Binding; Cannot Find the Setter

前端 未结 9 2119
梦如初夏
梦如初夏 2020-12-16 10:18

I am trying to implement listener bindings, but when I run my code I get the following error:

Caused by: android.databinding.tool.util.LoggedErrorException: F         


        
9条回答
  •  半阙折子戏
    2020-12-16 11:06

    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.

提交回复
热议问题