I wanted to look at the ID name for a LinearLayout to make sure I was accessing the correct one in my code. This error for me happened because I had forgotten to add an android:id="@+id/myid" into one of my XML layout files (because that file wasn't the focus of my attention at that point!)