From the course: Android Development: Data Binding

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Setting up your project

Setting up your project - Android Tutorial

From the course: Android Development: Data Binding

Start my 1-month free trial

Setting up your project

- [Instructor] In order to use data binding in your project, you need to make a change to your project settings. Data binding can be used with Android 4.0 and higher, which corresponds to API level 14 and above. You also need to make sure that you are using at least a version 1.5 of the gradle plugin with your project, although it's best to just make sure you're using the latest version. So the data binding library is bundled with the gradle plugin. So you don't need to manually download it or declare a dependency, but you do need to enable the feature in your gradle file. So let's open the gradle file for the app module. And that's this one right here. And you can see here, there's a section called build features. And what I've done here in the starting point for this project is added a build feature called data binding and set that to true. Now I've already done this for the start version of the project, but in…

Contents