I was trying to work out with multiple layout using some online tutorials. The thing is my program was building and compiling correctly as long as there was only one XML fil
I had a similar problem.
It happened suddenly, after deleting some pictures from res. drawable.
I did two things.