E:\workspace\xxx\build\intermediates\packaged_res\debug\values\values.xml:1333:4: Multiple substitutions specified in non-positional format of string resource string/recipe_detail_cookstep. Did y
ou mean to add the formatted="false" attribute?
E:\workspace\xxx\build\intermediates\packaged_res\debug\values\values.xml:1340:4: Multiple substitutions specified in non-positional format of string resource string/recipe_detail_mode_temp_time.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processCheckDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> AAPT2 aapt2-4.2.2-7147631-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
Caused by: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.2.2-7147631-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
通过日志看最好Error相关的信息,Multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?
通常是因为string.xml中一个string 使用多个%引起 如:%s – %d 解决办法 %s – %%d 仅能有一个%,其余加 %
|