[英]Java android Multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?
[英]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>
但是替换是位置格式...
我知道在stackoverflow中还有其他与同一主题有关的问题,但我认为它们不能回答我的问题。 有任何想法吗?
编辑:我已将问题缩小到感叹号和两个point(:)的存在。 但是这不是工作吗?
我刚刚发现我在第三个参数中有一个多余的d错字。
问题解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.