-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't link "tvTodoTitle.text" (and) "cbDone.isChecked"... (No import option in pop-up, see screenshot) #6
Comments
Need to use view binding instead: https://developer.android.com/topic/libraries/view-binding Add this to build,gradle on module level: android { So it would be something like private lateinit var binding: ItemTodoBinding |
Did you get the solution to this problem? @JustinKirton |
I am too getting the same error. Anybody got any solution please do ping me. |
I find out the problem that is we have to implement
to app/build.gradle file. But it's not supported right now You can watch this tutorials to solve this issue |
in MainActivity.kt you can initialize them like this:
|
Very clear and easy to follow tutorial by the way.
Needless to say, I'm new to this and can assume that my version could have changed some of the parameters from the version you're using.
All ok till 47:40 (approx.)...
I "alt+ enter", as suggested and got no 'import' option from the pop-up... (It was all going so well)
I looked back through the other files to see if there were any mistakes.
I see that the file "item_todo.xml" contains the title so I assume it is referencing this particular file.
The text was updated successfully, but these errors were encountered: