Error parsing XML: prefix must not be bound to one of the reserved namespace names

来源:互联网 发布:家庭怎么安装网络电视 编辑:程序博客网 时间:2024/05/05 05:53

gradlew在android6.0 (M)正式使用

gradlew 出现问题error 

 Error parsing XML: prefix must not be bound to one of the reserved namespace names

我们通常会在resource file (.xml)开头加上类似

<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
这个没有问题,在加入字符串时,
注意如果是不用再加入xmlns:xliff或者xmlns:****(更不能加没有定义的namespace前缀)
比如

<stringname="XXX_txt" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">XXXXXX</string>

直接删除xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"就可以了


0 0
原创粉丝点击