The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin. #998
This error message is correct. The kotlin-android-extensions plugin is deprecated and will be removed, and you don't need to add it to use ViewBinding.
I followed the ViewBindingSample but after inserting the line:
in the file build.gradle the sync says:
So either the warning or the sample is wrong and needs to be updated.