After adding the Android lifecycle component to my project with the following line: implementation("androidx.lifecycle:lifecycle-extensions:$lifecycleVersion")
in my app's build.gradle.kts file all the import kotlinx.android.synthetic
stop working, lifecycleVersion is defined as "2.0.0"
It gives me the following error in the places where I use the imported views. And the imports are marked as unused by the IDE
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
I tried moving the source code from the main/java folder to a main/kotlin one after searching for a solution online but it didn't work.