mBinding.setViewModel(new SoundViewModel(mBeatBox));
would you help me please
mBinding.setViewModel(new SoundViewModel(mBeatBox));
would you help me please
Make sure you’ve updated your XML to list add a variable. The variable is called ‘viewmodel’ so a setViewModel
method is generated for you.
I have the same issue. I have done everything as specified and even rebuilt the project. But the problem persists. Any ideas?
Solved. Just had to close and reopen Android Studio