我在android应用程序中定义了一个字符串:
<string name="search_occurs">'{string}' occurs {times}</string>
这给出了错误:撇号不以\开头(在“ {string}”中发生{times})
我尝试了很多方法来解决此问题:
<string name="search_occurs">\'{string}\' occurs {times}</string>
<string name="search_occurs">'{string}' occurs {times}</string>
<string name="search_occurs"><![CDATA['{string}' occurs {times}]]></string>
<string name="search_occurs"><![CDATA[\'{string}\' occurs {times}]]></string>
我无法摆脱错误。我想念什么?
\'
为我工作。刚刚在Eclipse中尝试过。