天天看點

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

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字首)      
比如      
直接删除xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"就可以了