I have a res/layout/main.xml including these elements and others:
res/layout/main.xml
Seems there is a variety of reasons. I just used "Clean..." in Eclipse to solve a similar problem. (FindViewByID had worked before and for some reason started to return null.)