lint错误StringFormatInvalid: Invalid format string
string定义如下:
<string name=“success_tip" formatted="false”>您已购买%1$d件,总价格%2$s元</string>
使用方式:
getString(R.string.success_tip, num, price);
结果lint分析报错:
Format string 'success_tip' is not a valid format string so it should not be passed to String.format。
请问一下这个是什么原因,需要怎么处理?