When it's not generating the binding class, I restart Android studio. Then the binding class will be generated. Isn't it caused by cache of android studio?
BTW, if you are using android-apt, please check it. Because it will cause binding class not to be generate.