Unexpected namespace prefix "xmlns" found for tag Linear Layout

Source: Internet
Author: User

Original Address http://blog.csdn.net/taxuexumei/article/details/41523419

Today's problems,,, saved to the blog, the next encounter to find a blog on the line,,,,,,

Today, when making an Android UI nesting layout, the following occurs when entering and exiting the following code:
<linearlayout
Xmlns:android= "Http://schemas.android.com/apk/res/android"
Xmlns:tools= "Http://schemas.android.com/tools"
android:orientation= "Vertical"
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
tools:context= "${relativepackage}.${activityclass}" >


<button
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
android:text= "Beijing Magic Music Technology"/>
<linearlayout
"Xmlns:android=" Http://schemas.android.com/apk/res/android ""
android:orientation= "Vertical"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content" >
<imageview
android:src= "@drawable/ic_launcher"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content"/>
<imageview
android:src= "@drawable/ic_launcher"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content"/>
</LinearLayout>
<tablelayout
"Xmlns:android=" Http://schemas.android.com/apk/res/android ""
android:orientation= "Vertical"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content" >

</TableLayout>


</LinearLayout>
"" The thing marked in this parenthesis appears red underlined.
There are the following
Unexpected namespace prefix "xmlns" found for tag linearlayout
The error, my solution is


is a namespace declaration as long as in the XML appears once, multiple occurrences of the error, it seems that the previous request.
Only the first declaration is retained, and the subsequent direct deletion is OK.

//////////////////////////

An XML script error "Unexpected namespace prefix" xmlns "found for tag linearlayout" was discovered once after the development tool was upgraded, and it was a namespace declaration as long as it appeared once in XML. , many times appear on the error, before it seems that no such requirements.

Only the first declaration is retained, and the subsequent direct deletion is OK.

Unexpected namespace prefix "xmlns" found for tag Linear Layout

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.