I have made a button in xml and then assigned an id but can't call the id in kotlin file because I can't import.kotlin.android......
Also I've seen videos but the gradle solution is no longer working. Please help
I've tried other solutions from youtube and stack overflow
you need to import this necessary imports
OR
Also you can use binding for call button
View Binding enabled in your module's build.gradle file.
In your activity or fragment where you want to access the views: