Android - 前缀“xmlns”不能明确绑定到任何名称空间;(Android - The prefix “xmlns” cannot be bound to any namespace explicitly; neither can the namespace for “xmlns” be bound to any prefix explicitly)

有没有人得到这个“xmlns”命名空间问题(见下文)? 我无法再建立我的工作项目。

起初我以为这是我的git分支,所以我切换到原点开发和主分支 - 问题依然存在。

我清理并重建了我的项目 - 问题依然存在。

我清理并同步了我的成绩档案 - 问题依然存在。

最后,我尝试重新安装Android Studio并重新创建我的git存储库 - 问题依然存在。The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

Error: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

:{project}:mergeReleaseResources FAILED

Execution failed for task ':{project}:mergeReleaseResources'.

> {project}/build/intermediates/incremental/mergeResources/release/merger.xml:1:61: Error: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

注意:问题看起来类似于Android Gradle合并的Values.xml使用了错误的命名空间 ,但是我找不到一个未使用的命名空间。 我进行了检查,但没有找到未使用的命名空间。

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 and master branches - issue persists.

I cleaned and rebuilt my project - issue persists.

I cleaned and synched my grade files - issue persists.

Finally I tried re-installing Android Studio and re-creating my git repository - issue persists. The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

Error: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

:{project}:mergeReleaseResources FAILED

Execution failed for task ':{project}:mergeReleaseResources'.

> {project}/build/intermediates/incremental/mergeResources/release/merger.xml:1:61: Error: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

Note: Issue seems similar to Android Gradle merged Values.xml uses wrong namespace, but I couldn't find an unused namespace. I ran an inspect, but no unused namespaces were found.

原文:https://stackoverflow.com/questions/29221236

更新时间:2019-10-28 02:35

最满意答案

在我的情况下,删除com_crashlytics_export_strings.xml文件修复了这个错误。

xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

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

xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

相关问答

在我的情况下,删除com_crashlytics_export_strings.xml文件修复了这个错误。 <?xml version="1.0" encoding="utf-8" standalone="no"?>

Logo

昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链

更多推荐