Android xml error Attribute is missing the Android namespace prefix [Solution]

Attribute is missing the Android namespace prefix

This error is related to one of the XML files in your Android Workspace Project,

Reason ?

You have missed out xmlns namespace attribute in one of your XML: AndroidManifest.xml, layout.xml, or any Custom XML that you have added.

Solution :

Check that these XML files contains, xmlns:android=""

If the Android namespace is not present Eclipse will throw an error.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
    android:versionName="1.0" >
        android:targetSdkVersion="21" />
    <uses-feature android:name="" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        android:theme="@style/AppTheme" >
            android:label="@string/app_name" >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.