1

What's the difference between the options to enable viewBinding:

viewBinding {
    enabled = true
}

AND

Groovy

buildFeatures {
    viewBinding true
}

Kotlin

buildFeatures {
    viewBinding = true
}
groff07
  • 2,363
  • 3
  • 32
  • 48

1 Answers1

1
viewBinding {
    enabled = true
}

this used to be used and now some users are seeing error

buildFeatures {
    viewBinding = true
}

they are using this. But there is no difference in terms of usage.