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
My experience is that Android Studio 3.1.3 generated the databinding class after I clicked "Build > Rebuild Project". The file was stored in:
\Project\app\build\generated\source\apt\development\debug\project\android\app\databinding
However, Android Studio still reported the binding class as "Unknown" in source code.
To finally fix it, I manually added the import statement:
import project.android.app.databinding.*;