举例android项目中的string.xml出现这个The character reference must end with the ';' delimiter.错误提示的原因及解决办法

今天在一个android项目中的string.xml中写这样一个字符串时出现了下面这个错误提示:

The reference to entity "说明" must end with the ';' delimiter.

错误的字符串如下图所示:

 

 

 

 

错误原因:在这个字符串中输入了一个特殊的符号“&”

 

解决办法:如果确实需要一个分隔符的话可以用分号“;”来代替“&”

posted @ 2013-06-18 20:42  jlins  阅读(1432)  评论(0)    收藏  举报