为什么这个工作?
<string name="quantity_geoFormat">"%s"</string>
而这不是?
<string name="quantity_geoFormat">"%s %s"</string>
对于第二我得到这个错误:以非位置格式指定多个replace;
您需要使用位置replace格式,如下所示: %1$s
。
因此,你的第二个string资源应该是这样的:
<string name="quantity_geoFormat">"%1$s %2$s"</string>