当使用
aapt2 compile -o build/res.zip --dir ./app/src/main/res
可能会遇到以下问题
./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.
可以检查 strings.xml
文件,将 %s
之类的占位符更换为 %1$s