I am having an error in following xml file. \"Unexpected namespace prefix \"xmlns\" found for tag LinearLayout\". I tried the solutions provided in other similar qu
I encountered this problem multiple times with various codes.
The codes were running absolutely fine in the past but now they are showing these errors....
I found a very simple solution, doesn't require any code changes (Addition, edit or deletion).
Go to the Project Tab at the tab Click on the tab Select the "Clean...." from the list
You will see the list of all the projects opened in your work space.
You can either select one project or all (I generally do "Clean all projects"). Click Ok. The process takes around 5-7 sec for around 10 projects. All the XMLNS errors are resolved... You should try this before trying any other solution.... This is like restarting the system for Window's error which resolves problems 70% of the times...
The above solution is more of a temp solution working in all situation.. To avoid the situation in future, I all xmlns codes together at the top. (there may be a duplicate statement that may be required to be deleted)
I was having this issue when integrating Admob on the XML file.