uni-app今天安卓打包失败

uni-app今天安卓打包失败

今天打包报这个错误,前天还没有

Execution failed for task ‘:app:mergeReleaseResources’.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
/home/[Name]/.gradle/caches/transforms-2/files-2.1/6ffdb73228a726886af7c7327321dbd0/lib.5plus.base-release/res/values-zh/values-zh.xml:18:5-112: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=\"false\" attribute?
[PackagePath]/app/res/values-zh/strings.xml:4:1-269: AAPT: error: unescaped apostrophe in string
[PackagePath]/app/res/values-zh/strings.xml:4:1-269: AAPT: error: not a valid string.
[PackagePath]/app/build/intermediates/incremental/mergeReleaseResources/merged.dir/values-zh/values-zh.xml: AAPT: error: file failed to compile.

链接:

图片


更多关于uni-app今天安卓打包失败的实战教程也可以访问 https://www.itying.com/category-93-b0.html

8 回复

这是因为自定义隐私提示框内容中包含单引号导致,已兼容修复,重新提交云端打包即可。

更多关于uni-app今天安卓打包失败的实战教程也可以访问 https://www.itying.com/category-93-b0.html


3.1.8版本无法打包啊.已经修复的是哪个版本啊

回复 j***@won-cloud.com: 打包失败的原因有很多,请提供完整的错误日志链接

HBuilderX回退到3.1.4就能正常打包了,大伙都被升级带到坑里去了

3.1.7的版本我也遇到这个问题了

第一个评论,我用3.1.4打也可以了

回到顶部