Can't resolve android.support.design. after migration to AndroidX
Solved with this solution: snackbarView.findViewById<TextView>(com.google.android.material.R.id.snackbar_text)
Thanks for the great answer by @dudi, in general in migration to androidX you can replace
android.support.design.R
with
com.google.android.material.R
I have written a brief step-by-step article on AndroidX migration here, if someone is interested to know more.
Changing this :
android.support.design.R
with
com.google.android.material.R
solves the problem . After Migration to AndroidX we are working with different library.