非位置格式错误中指定的多个替换
Multiple substitions specified in non-position format error
我遇到以下字符串资源的错误 "Multiple substitions specified in non-position format error":
<string name="stCrewmanBlockedEnemy">The %1$s has blocked the enemy attack! (dice: %2$d + skill: %3d$d) vs (dice: %4$d + skill: %5$d)</string>
但是替换是位置格式...
我知道在 Whosebug 中还有其他相同主题的问题,但我认为它们没有回答我的问题。有什么想法吗?
编辑:我已将问题缩小到感叹号和两个点 (:) 的存在。然而,这行不通吗?
我刚刚发现我在第三个参数中有一个额外的 d 的拼写错误。
问题已解决。
我遇到以下字符串资源的错误 "Multiple substitions specified in non-position format error":
<string name="stCrewmanBlockedEnemy">The %1$s has blocked the enemy attack! (dice: %2$d + skill: %3d$d) vs (dice: %4$d + skill: %5$d)</string>
但是替换是位置格式...
我知道在 Whosebug 中还有其他相同主题的问题,但我认为它们没有回答我的问题。有什么想法吗?
编辑:我已将问题缩小到感叹号和两个点 (:) 的存在。然而,这行不通吗?
我刚刚发现我在第三个参数中有一个额外的 d 的拼写错误。
问题已解决。