Because they answered the question, and it is better to make an official answer:
With data binding errors, we can usually find stacktrace in the gradle console (not logcat or run window in android studio). They are usually marked as data binding error ****msg , indicating a problem file.
In this case, we can check Cannot resolve type for category file:F:\Android\Kotlin\app\src\main\res\layout\item_category.xml , which tells us that the problem file was item_category.xml
source share