After migrating to Android Studio 3.2, API 28, I am getting the following error on my app\'s layout:
The layout in layout has no declaration in the base lay
For me the following steps made it work:
In my case it was the use of capital letters in the file name. I left everything in lowercase and it was fixed.
In my case, this issue was caused by Uppercase letter. Wrong chars like "-" can also cause the issue.
I changed the name from Activity_disease.xml
to activity_disease.xml
and the issue fixed.
You can also try this :
File => Invalidate Caches / Restart => Invalidate and Restart.
Late to the party but My case is different from above.
I just renamed the resource and it started working.
Actually my resource name was ic_menu_black_24dp.xml so it was conflicting with the android's menu resource.
(1) Delete the original layout.
(2) Add the layout again.
Step-1
Step-2