Hi sir,i have got an error of "unresolved reference setOnClickListner" and "unesolved reference onClickListner"

I have searched a lot in stackoverflows but could not resolve the errors.Please help me to rectify these errors

Have you imported the view correctly ? You should import button correctly in order to use it

okay ,this problem is solved.my next ques is why are we converting etvar1 to string before converting it to int,why cant we directly convert it into int (why this (etvar1.text.toStrong().toInt() ->>etvar1.text.toInt()))

########its toString not toStrong

Can you please tell me why are we passing this as a parameter here:…rvTodos.layoutManager=LinearLayoutManager(this)

Because the layout manager needs the context/reference of window/ui screen