The value of attribute “a“ associated with an element type “View“ must not contain the ‘<‘ character

   问题很小,提醒休息

问题:

The value of attribute "android:background" associated with an element type "View" must not contain the '<' character.

与元素类型“View”关联的属性“android:background”的值不能包含“<”字符。

问题点:

 问题思路:

1.传统的上行影响下行代码,编译器解释为乱码;

2.太过依赖编译器,IDE不会报错,索引在下一行,导致看了半天,改了半天,哭笑。而后恍然大悟,android:background="#EAEEF4"这里少加了一个双引号

3.开发过程中,很多小细节真的让人哭笑不得,耗了时间,就是看不出问题。

其实只是精力不足了,工作太久了,起来走走,换换思路,休息一下,或者第一天再看看,最后解开你自己也会笑了。

猜你喜欢

转载自blog.csdn.net/ly_xiamu/article/details/125675910