error: multiple substitutions specified in non-positional format; did you mean to add the formatted

When used

 aapt2 compile -o build/res.zip --dir ./app/src/main/res

You may encounter the following problems

./app/src/main/res/values/strings.xml:4: error: multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?.
./app/src/main/res/values/strings.xml: error: file failed to compile.

You can check the strings. XML file and replace placeholders such as % s with % 1 $s


Read More: