Newer way to enable data binding. (Chapter 19)

Where is the chapter 19 section?

For anyone following along in code watch for a change in how data binding is enabled. Old book way seems to work but you will prob get a warning.

DSL element ‘android.dataBinding.enabled’ is obsolete and has been replaced with ‘android.buildFeatures.dataBinding’.

New way via codelab:

1 Like

thanks, mine wasn’t working without this.

1 Like