异常信息:
/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
解决办法:
将
<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>