After updating to Androis Studio 4.0 I received a warning that android.viewBinding.enabled was deprecated and shoud lbe replaces with android.buildFeatures.viewBinding.
I therefoe changed the appropraiet part of my build.gradle (app) from:
android {
...
viewBinding {
enable = true
}
...
}
to:
android {
...
buildFeatures {
viewBinding {
enabled true
}
}
...
}
I no longer get the warning, but still get an information box in my build window as follows:
build.gradle: DSL element 'android.viewBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.viewBinding'.
It will be removed in version 5.0 of the Android Gradle plugin.
Is this normal? I knows it's not a warning or an error, but it seems odd to tell me about something that has been fixed - or have I not fixed it correctly (my app still works using viewBinding as expected).
(Note also that when adding the buildFeatures section to the file, none of the required entires, including buildFeatures pops up in teh auto-complete prompt.)
