https://kotlinlang.org logo
Title
j

Joao Birk

11/10/2020, 6:28 PM
Hi there, QQ:
build.gradle
using
plugin id 'com.android.dynamic-feature'
and `plugin id `kotlin-android``Im able to set :
buildFeatures.dataBinding = true
converting it to Kotlin DSL
build.gradle.kts
and using
buildFeatures.dataBinding = true
says
dataBinding
is non existent, I only see
viewBinding
: https://developer.android.com/reference/tools/gradle-api/4.1/com/android/build/api/dsl/BuildFeatures Does that mean I still need to use the deprecated way (
dataBinding.isEnabled = true
) on DSL?
WARNING: DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.
y

Yahor

11/16/2020, 7:43 PM
The same in my project. Looks like a AGP google team didn’t migrate dynamic feature to a new approach.