codinginflow / MVVMTodo

187 stars 124 forks source link

databinding not generating #13

Open lemcoder opened 1 year ago

lemcoder commented 1 year ago

Hello!

Due to changes in newer versions of databinding the binding classes are not generating correctly

To fix this issue we need to wrap each layout file with tag like following:

<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    // ... layout markup here

</layout>

More info: https://developer.android.com/topic/libraries/data-binding/expressions