CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
06/13/13 05:25 PM (12 years ago)

Unexpected namespace prefix xmlns found for tag RelativeLayout

I have this error: Description Resource Path Location Type Unexpected namespace prefix "xmlns" found for tag RelativeLayout act_title.xml /BT_activity_root/res/layout line 16 Android Lint Problem does anyone knows what causes this???
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/13/13 05:47 PM (12 years ago)
I can't say. Android is still a big mystery to me, for the most part. I 'can' say that while developing in Android, and while creating layouts, if 'my' layout isn't right, sometimes it seems to rip apart every other layout in the project, for an unknown reason. I then undo whatever I did, clean my project, and that usually puts things back right again. And then I proceed, after googling whatever it was I was trying to do... Those namespaces represent some definition of the object, but I'm a bit fuzzy on the whole thing, and don't want to taint you with bad information... Good Luck; I hope you find your issue! Cheers! -- Smug
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
06/13/13 05:58 PM (12 years ago)
thank you for the help .i will continue to try to solve this issue and post my solution
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/13/13 07:44 PM (12 years ago)
In the act_title.xml file, (in the res > layout folder), on line 16 will be this line (hopefully!): xmlns:android="http://schemas.android.com/apk/res/android" remove that whole line and do a project > clean Since a recent update the android sdk doesn't like adding a schema to an inner component, so all those line can be safely removed, except the main schema at the top of the file. I think you can probably just do a project > clean and it'll be ok for a while, but you'll keep getting the error popping up unless you remove the code. *edit* Did the homework last week when I was getting the identical problem!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
06/13/13 10:45 PM (12 years ago)
Thank you that fixed it!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/14/13 04:03 AM (12 years ago)
Excellent!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.