Multiple substitutions specified in non-positional format; did you mean to add BUG(7)

简介: Multiple substitutions specified in non-positional format; did you mean to add BUG(7)

报错现象:strings文件报错了,编译失败


87f2d0691d46fa4427fdac8c8aed9e6.png



原因:字符串中有%的原因


相关提示: Multiple substitutions specified in non-positional format;  did you mean to add the formatted=”false


查看其余项目发现并无此问题,经过百度,发现以下解决办法:建议第一种,毕竟报错提示里是这样建议的


  1.加上formatted="false"



         

   2.用两个%%


<string name="time_picker">%%s时</string>

   3.用转义字符\


<string name="time_picker" >\%s时</string>


相关文章
|
算法 C# C++
HALCON error #1201: Wrong type of control parameter: 1 in operator threshold
HALCON error #1201: Wrong type of control parameter: 1 in operator threshold
|
9月前
|
JSON 数据格式
解决报错TypeError: Converting circular structure to JSON --> starting at object with constructor
解决报错TypeError: Converting circular structure to JSON --> starting at object with constructor
|
7月前
|
Python
【Python】已解决:TypeError: *init*() missing 1 required positional argument: ‘scheme’
【Python】已解决:TypeError: *init*() missing 1 required positional argument: ‘scheme’
425 0
|
7月前
|
Python
【Python】已解决:TypeError: write._Log() takes 0 positional arguments but 1 was given
【Python】已解决:TypeError: write._Log() takes 0 positional arguments but 1 was given
261 0
|
7月前
|
机器学习/深度学习 Python
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
356 0
|
9月前
|
开发工具
gdbusauth.c:1302:11: error: ‘%s’ directive argument is null
gdbusauth.c:1302:11: error: ‘%s’ directive argument is null
249 0
|
JSON 数据格式
遇到【Unexpected character (‘“‘ (code 34)): was expecting comma to separate Object entries】的解决办法
遇到【Unexpected character (‘“‘ (code 34)): was expecting comma to separate Object entries】的解决办法
遇到【Unexpected character (‘“‘ (code 34)): was expecting comma to separate Object entries】的解决办法
|
TensorFlow 算法框架/工具
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
298 0
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
error: ‘nullptr’ was not declared in this scope
error: ‘nullptr’ was not declared in this scope
245 0
解决办法:Type safety: The expression of type List needs unchecked conversion to conform
解决办法:Type safety: The expression of type List needs unchecked conversion to conform
364 0