androidkotlinandroid-activityandroid-viewbinding

Error in ViewBinding in Kotlin, Error is to check module classpath for missing or conflicting dependancies


enter image description here

I am getting this error in Kotlin, even when I have set viewBinding true in gradle file of app, Please help Cannot access 'androidx.viewbinding.ViewBinding' which is a supertype of 'com.example.cpapp.databinding.ActivityMainBinding'. Check your module classpath for missing or conflicting dependancies


Solution

  • it was solved just restarted my laptop and I had an update for one of the dependancies. Thanks alot for the help.