Skip to content Skip to sidebar Skip to footer

Android - The Prefix "xmlns" Cannot Be Bound To Any Namespace Explicitly; Neither Can The Namespace For "xmlns" Be Bound To Any Prefix Explicitly

Is anyone getting this 'xmlns' namespace issue (see below)? I cannot build my work project anymore. At first I thought it was my git branch, so I switched to the origin develop an

Solution 1:

In my case deleting the com_crashlytics_export_strings.xml file fixed this error.

<?xml version="1.0" encoding="utf-8" standalone="no"?><resources><!--
  This file is automatically generated by Crashlytics to uniquely 
  identify individual builds of your Android application.

  Do NOT modify, delete, or commit to source control!
--><stringxmlns:ns0="http://schemas.android.com/tools"name="com.crashlytics.android.build_id"ns0:ignore="UnusedResources,TypographyDashes"translatable="false">xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</string></resources>

Solution 2:

You need to remove all xmlns:android="http://schemas.android.com/apk/res/android" from your main\res\values\style.xml file style tag. Your style.xml file should be like this: (make sure no xmlns field in your style tag)

<resourcesxmlns:android="http://schemas.android.com/apk/res/android"><stylename="AppBaseTheme"parent="android:Theme.Light"></style><stylename="AppTheme"parent="AppBaseTheme"></style><stylename="RadioButton"parent="@android:style/Widget.CompoundButton"><itemname="android:button">@null</item><itemname="android:padding">5dp</item></style><stylename="EditText"parent="@android:style/Widget.EditText"><itemname="android:textSize">15sp</item></style></resources>

Solution 3:

I was able to clear this error by 'editing' my build.gradle fine (delete a space, etc) and THEN cleaning my build. Without first editing the gradle build file, Android Studio was not picking up the changes.

Post a Comment for "Android - The Prefix "xmlns" Cannot Be Bound To Any Namespace Explicitly; Neither Can The Namespace For "xmlns" Be Bound To Any Prefix Explicitly"