Android Studio: Accidentaly ignored “xmlns” attribute

Using Android Studio in the XML-Layout-editor,

When an error saying something about the xmlns not being found, I checked quickly for a fix with the help of the editor, and I chose one that said something about ignore.

Suddenly, this error,




Where it says element RelativeLayout must be declared and this follows for all childrens aswell. The <RelativeLayout is the part that has the error. Also the childern, such as <LinearLayout has this error.

Where can I remove the ignore?


You can check if the file is in "layout" folder.

I also met the error element RelativeLayout must be declared. I realized that my file was located in "drawable" folder, instead of the "layout" folder. That's why the error showed up.

Need Your Help

EJBQL/MySQL Regexes and IN

java mysql regex ejbql

I have a list of Regexes and want to return those rows with a field which passes any regex. Is there anyway to something like the following:

Json Parsin in android

java android web-services text-parsing

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.