异常信息:
/Users/mazaiting/AndroidStudioProjects/WisdomSite/app/build/intermediates/res/merged/debug/values/values.xml
Error:(781) Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
Error:(781) Unexpected end tag string
Error:(781) Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
Error:(781) Unexpected end tag string
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
![3110861-56b8c0673c34dc05.png](https://i-blog.csdnimg.cn/blog_migrate/a97d28045f49a8236b5f37b88b223f16.webp?x-image-process=image/format,png)
异常.png
解决办法:
将
<string name="tv_attend_day">\t\t应到 %d人,实到 %d人,到勤率 %.2f%%,缺勤率 %.2f%%.</string>
更改为:
<string name="tv_attend_day">\t\t应到 %1$d人,实到 %2$d人,到勤率 %3$.2f%%,缺勤率 %4$.2f%%.</string>