Google SignInButton's onClick doesn't work using DataBinding
问题 When I try to set the onClick method in my Google's SignInButton : android:onClick="@{() -> viewModel.onGoogleLoginClick()}" I always get this error: Found data binding errors. ****/ data binding error ****msg:Cannot find the proper callback class for android:onClick. Tried android.view.View but it has 0 abstract methods, should have 1 abstract methods. file:/Users/user/Android/project/app/src/main/res/layout/activity_login.xml loc:53:31 - 53:66 ****\ data binding error **** Here is my code: