[size=large][color=green]strings.xml文件中需要对特殊符号(如%,'等)进行转换,只需在特殊符号前加上\即可。[/color]
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="string_text"><xliff:g id="format">%1$s</xliff:g>"\%"</string>
</resources>[/size]
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="string_text"><xliff:g id="format">%1$s</xliff:g>"\%"</string>
</resources>[/size]