Nullpointerexception In Setonclicklistener March 27, 2024 Post a Comment This is really frustrating me and none of the other questions solved my problem. I'm using a test app from a book, and copied all the code verbatim. Everything was running fine eaSolution 1: The problem is you're mixing up the name of the Button.Java:ViewaboutButton= findViewById(R.id.main_about_button); CopyXML:android:id="@+id/about_button"CopyEither change the second to @+id/main_about_button or the first to R.id.about_button and you should be good to go. Share Post a Comment for "Nullpointerexception In Setonclicklistener"
Post a Comment for "Nullpointerexception In Setonclicklistener"