Multiple annotations found at this line:
- error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"
attribute?
- error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"
attribute?
- error: Unexpected end tag string
在string出现了两个%结果报了如上错误
有两个办法可供选择
1.
用%%来表示1个%
2.如果你的字符串不需要格式化,可以在你的<string
标签上增加一个属性:formatted="false"例如 <string name="test" formatted="false">% test %</string> 即可。