android 中xml文件中出现 Attr.value missing 错误

在开发中遇到了小问题。记录。
在一个xml中,通过<include>标签引入另一个布局xml
但出现错误,错误信息如下:
Attr.value missing f. true (position:START_TAG <TextView android:textSize='12.0sp' android:ellipsize='marquee' android:id='@id/readStatusName' android:scrollX='2.0px' android:focusable='true' android:layout_width='120.0dip' android:layout_height='wrap_content' android:text='绔犺妭鍚� android:scrollHorizontally=' true='@style/text_gray'>@6:271 in java.io.FileReader@107704c)
提示是引入xml中出现错误,但再三确认引入的xml没有错误,最后发现是编码问题导致乱码引起错误,
我是直接在xml中定义 android:text="章节",修改引用android:text="@string/chapters"后错误解决。
但奇怪的是xml还有其他的也是直接定义的,都没报错。
可能是这个textview中的其他属性导致。
如果哪位高人知道原因,请详细告之。

你可能感兴趣的:(android,attr,include)