I've receiving this error in every project I make, new or otherwise.
I've attempted reinstalling Android Studio fresh without any luck and I've also scoured the Internet for the exact error and nothing seems to be coming up.
Does anyone have an idea of what's causing this error when I add a new layout to my project?
As your screenshot shows,current package name is layout,but maybe you don't have a package named
layout,so such error existed.
If you want to add a layout file to your project,you should right click layout folder under res folder,and create a layout file.