I am migrating to Kotlin dsl and I can’t set buildFeatures property databinding any more. It is missing from AppExtension class. It is happening in dynamic feature module
Any suggestions?
Before in Groovy worked
android {
buildFeatures {
dataBinding = true
}
}
Kotlin is not working either the same syntax or
buildFeatures.dataBinding = true
Attaching some screenshots.
The error is
Unresolved reference: dataBinding
2
Answers
After submitting a ticket to Google the answer is to use https://issuetracker.google.com/issues/193452960
Based on the dev reply marking it as deprecated is a bug and should not be thee case in kts.
From the ticket:
You could try to upgrade your AGP.