The layout in layout has no declaration in the base layout folder [error]
After migrating from Eclipse to the new version of 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 layout folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier
One of the layouts that I am getting this error is:
I get the error on the first line of the first LinearLayout.
Does anyone know how to solve this error?
UPDATE: It seems to a be an encoding issue. I had copied the xml files in the folder using Windows Explorer. After deleting the files and coping them inside Android Studio, the problem has been solved.