使用strings.xml进行格式化占位符时报错:
Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
检查后发现是格式化字符串中包含多个占位符导致
解决案例:
<string name="test">HomePage: %1$s, Author: %2$s</string>
<string name="order_total_hint">Total %1$d products(including shipping %2$s%3$.2f)</string>