I had a layout file named activity_main.xml and binding class was ActivityMainBinding but for some reason, I had to rename the layout file
activity_main.xml
binding
ActivityMainBinding