级错误解析XML:preFIX不能绑定到保留的命名空间的名字之一 [英] Grade Error parsing XML: prefix must not be bound to one of the reserved namespace names
问题描述
我在我的项目工作时,我已经更新了Android Studio中的版本AI-141.2024585。
I was working on my project when I have updated the Android Studio to version AI-141.2024585.
一切工作顺利升级之前,但随后的项目没有进行编译。
我有这个错误的错误:(3)错误的解析XML:preFIX不能绑定到保留的命名空间名称之一
这是文件values.xml错误:
Everything worked well before upgrading, but then the project didn't compile. I have this error Error: (3) Error parsing XML: prefix must not be bound to one of the reserved namespace names And this is the file values.xml with error:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:ns1="http://www.w3.org/2000/xmlns/">
<declare-styleable name="DragSortListView"><attr format="dimension" name="collapsed_height"/><attr format="color" name="float_background_color"/><attr format="float" name="float_alpha"/><attr format="integer" name="remove_animation_duration"/><attr format="integer" name="drop_animation_duration"/><attr format="float" name="slide_shuffle_speed"/><attr format="boolean" name="remove_enabled"/><attr name="remove_mode"><enum name="clickRemove" value="0"/><enum name="flingRemove" value="1"/></attr><attr format="integer" name="fling_handle_id"/><attr format="integer" name="click_remove_id"/><attr format="boolean" name="drag_enabled"/><attr name="drag_start_mode"><enum name="onDown" value="0"/><enum name="onMove" value="1"/><enum name="onLongPress" value="2"/></attr><attr format="integer" name="drag_handle_id"/><attr format="float" name="drag_scroll_start"/><attr format="float" name="max_drag_scroll_speed"/><attr format="boolean" name="track_drag_sort"/><attr format="boolean" name="use_default_controller"/><attr format="boolean" name="sort_enabled"/></declare-styleable>
<eat-comment/>
<string name="com.crashlytics.android.build_id" ns1:ignore="UnusedResources,TypographyDashes" translatable="false" ns1:ns0="http://schemas.android.com/tools">0000000000000000</string>
</resources>
我试过安装的Android工作室的稳定版本和更新gradle这个。
我还搜查了整个项目的NS1属性,但只出现在该文件中。
I've tried installing a stable version of Android Studio and updating gradle. I also searched the ns1 attribute in the entire project but only appears in that file.
作为一个生成的文件不能改变它,但我可以修改库。
你知道如何修正这个错误?非常感谢
Being a generated file can not change it, but I can modify the library. Do you know how to fix the error? Thanks a lot
推荐答案
这是因为crashlytics插件。你可以尝试删除在每个模块的任意crashltics生成的XML文件,然后重新同步您的应用程序的文件的gradle
It's because of crashlytics plugin. You may try to delete any crashltics-generated xml files in every modules, Then re-sync the gradle file of your app.
该crashltics生成的XML文件看起来像 [ModuleXYZ] /src/res/values/com_crashlytics_xxx.xml
The crashltics-generated xml files looks like [ModuleXYZ]/src/res/values/com_crashlytics_xxx.xml
和Crashlytics似乎释放的更新,你也应该更新插件。
And Crashlytics seems to release an update you should also update the plugin.
更新成功打造我的项目议事它上面可能再次发生后,是昨天发生两次。不知道为什么,但只要按照上面的步骤,它会是固定的。
Update After successfully building my project with procedure above it could happen again, it happened twice yesterday. Not sure why but just follow the procedure above it'll be fixed.
这篇关于级错误解析XML:preFIX不能绑定到保留的命名空间的名字之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!