【发布时间】:2015-03-23 21:57:14
【问题描述】:
有人遇到这个“xmlns”命名空间问题吗(见下文)?我不能再构建我的工作项目了。
- 起初我以为是我的 git 分支,所以我切换到 origin 的开发和主分支 - 问题仍然存在。
- 我清理并重建了我的项目 - 问题仍然存在。
- 我清理并同步了成绩文件 - 问题仍然存在。
-
最后我尝试重新安装 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 merged Values.xml uses wrong namespace,但我找不到未使用的命名空间。我进行了检查,但没有找到未使用的命名空间。
【问题讨论】:
-
如果您尝试集成 Fabric/Crashlytics,那么帮助我的是放弃 IDE 插件并按照本指南手动添加:dev.twitter.com/fabric/android/integrating
标签: android git android-studio gradle xml-namespaces