Error "Element linear layout must be declared"

0

I'd like an orientation, please, I'm a beginner in Android Studio. I have searched in many forums and many searches and found no solution for days.

When I create a file inside the drawable folder the following error occurs:

  

Element linear layout must be declared.

I noticed that this also happens when I create a folder with a file or just a file outside of the layout folder but within res . Since the files inside the layout does not happen any type of error when I create some new one.

    
asked by anonymous 03.08.2016 / 15:27

1 answer

3

The layout files (RelativeLayout and LinearLayout) should be inside the res / layout folder.

In this drawable folder you can put image and Drawable Resources files, such as: layer-list, shape, selector and etc ...

You can check all accepted elements in this drawable folder in the Android documentation: Drawable Resources .

    
03.08.2016 / 15:55