In my case i upgraded AGP version and got fixed
My error was related to "view-binding" version
If you are using tools upgrade it , Or migrate to AGP
Hope works