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
Make sure that the layout of the:
Is in the activity_main.xml if you are looking for ActivityMainBinding. In most boilerplate projects you set your content view to activity_main.xml, but then inflate you fragment_main.xml.
If you put your in fragment_main.xml layout then the class that is generated will be FragmentMainBinding.
Note: This may seem obvious after reading, but it is something that can be easily overlooked when following the android documentation.