I'm a rookie newbie on Android and I'm doing a project which contains:
ActiviyMain.class
ActivityMain.Layout
Fragment.Class
Fragment.layout
It turns out that I have a button in the Fragment.layout that is inside the ActivityMain layout, said button when pressing it must show information in the ActivityMain, but in doing so it throws me an error that I attached in the image. I remove the line from the button.onClickListener and everything runs fine.