实际开发中,我们会在String资源文件写的时候,会有这样的情况发生:how & what are you ?
当遇到这样的情况的时候,特别是遇到"&",资源会报错。
The entity name must immediately follow the '&' in the entity
reference.
那如何解决呢?
<string name="tips">how <![CDATA[&]]> what are you</string>
这样书写后,就不会报错了。
实际开发中,我们会在String资源文件写的时候,会有这样的情况发生:how & what are you ?
当遇到这样的情况的时候,特别是遇到"&",资源会报错。
The entity name must immediately follow the '&' in the entity
reference.
那如何解决呢?
<string name="tips">how <![CDATA[&]]> what are you</string>
这样书写后,就不会报错了。