Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

The layout in layout has no declaration in the base layout folder [error]

  • 0

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?

Thank you

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.

Share This Post
Share
  1. In my case closing and reopening Android studio solved the problem. Rebuilding the project or Invalidating the cache didn’t help.

    • 0
Leave an answer

Leave an answer

Browse

close