DataBinding Guide States
By default, a Binding class will be generated based on the name of the layout file, converting it to Pascal case and suffixing “Bindi
Try to rename layout to main_activity.xml.
main_activity.xml
In my case, it didn't work to generate binding class for "activity_main.xml". But renaming the layout file to main_activity.xml worked just fine.