Help – Find View By ID doesn’t seem to work

First of all, I’m a newbie and I’m not even a programmer. I’m following a Udemy course in order to learn how to get apps done.

So, simply put I’ve created a button in a LinearLayout view and set an ID for it but I can’t call it in my main activity – it just doesn’t show up as I type its id inside the main class. I know Kotlin was supposed to call a view by its id, but why isnt’t it working?

submitted by /u/schorro
[link] [comments]