Obtiene la siguiente advertencia al construir el proyecto
DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.
estoy usando Android Studio Canary 6
Obtiene la siguiente advertencia al construir el proyecto
DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.
estoy usando Android Studio Canary 6
Respuestas:
A partir de Android Gradle Plugin 4.0.0-alpha05ahí hay un nuevo bloque llamado buildFeaturespara habilitar las características de compilación.
Entonces, para habilitar el enlace de datos con el nuevo complemento AGP, debe hacer lo siguiente
android {
buildFeatures{
dataBinding = true
}
}
Referencia: https://developer.android.com/studio/preview/features#agp-4-0-0