android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.4k stars 8.29k forks source link

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

Closed OliverHoffmann closed 2 years ago

OliverHoffmann commented 3 years ago

I followed the ViewBindingSample but after inserting the line:

apply plugin: 'kotlin-android-extensions'

in the file build.gradle the sync says:

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.

So either the warning or the sample is wrong and needs to be updated.

zsmb13 commented 2 years ago

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.