1. Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
<string name="total_price_strformat">Total price: %s Line x %s Draw = </string>
修复方案:
<string name="total_price_strformat">Total price: %1$s Line x %2$s Draw = </string>
本文介绍了一种在非定位格式字符串中指定多个替换符的问题,并提供了一个修复方案。问题表现为在同一字符串资源中使用了不正确的占位符格式,导致应用无法正确解析字符串。修复方法是明确指定每个占位符的位置。

1万+

被折叠的 条评论
为什么被折叠?



