I'm now using viewBinding with Kotlin.
here is my build.gradle
enable ViewBinding and has auto import ViewBinding dependency.
but Android Studio still shows error like this
but I can build and run with no problem.
and if I add viewBinding in dependencies, then the error is gone.
Does anyone know why?
Facing same issue exact error yesterday. Solution work for me is
and Error is gone
Making sure
buildFeatures { viewBinding true }