異常信息:
/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
異常.png
解決辦法:
將
<string name="tv_attend_day">\t\t應(yīng)到 %d人,實到 %d人,到勤率 %.2f%%,缺勤率 %.2f%%.</string>
更改為:
<string name="tv_attend_day">\t\t應(yīng)到 %1$d人,實到 %2$d人,到勤率 %3$.2f%%,缺勤率 %4$.2f%%.</string>