can use data binding and view binding in same project code example
Example: using buidfeatures to enable viewbinding
// Android Studio 4.0
android {
buildFeatures {
viewBinding = true
}
}
// Android Studio 4.0
android {
buildFeatures {
viewBinding = true
}
}