Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"

string.xml:

%1#s!%2$s.The record was recorded on %3$s.%4$s,and %5$s

因格式化有错误,所以编译的时候出现
Multiple substitutions specified in non-positional format; did you mean to add the formatted="false",但点击该错误时,定位到的是values.xml,它把各个value资源都整合进去了,所以当修改了values.xml中的错误,再次编译时还是原来的数据,所以要修改源头string.xml中数据,把#改成$。

你可能感兴趣的:(android)