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
In my case , i accidentally imported my library's R. class not my app module's R. After editing this, it is resolved.