Android Multiple substitutions specified in non positional format
约 107 字 预计阅读 1 分钟
1
| Multiple substitutions specified in non-positional format; did you mean to add the formatted=”false” attribute?
|
错误的设置 string xml 的内容
1
| <string name="cpu_cur_freq">code -> %d message: %s</string>
|
% 改为 %1$s,其中1表示填充下标
1
| <string name="cpu_cur_freq">code -> %1$d message: %2$s</string>
|
1
| <string name="cpu_cur_freq" formatted="false">code -> %d message: %s</string>
|