1***@qq.com
1***@qq.com
  • 发布:2024-12-17 11:16
  • 更新:2024-12-17 14:36
  • 阅读:50

本来是正常的,今早重复引入了下插件打包就失败了,删除包重新引入打包还是报错

分类:uni-app

Appid: UNIFE81F5D

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processReleaseResources'.

    A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
    Android resource linking failed
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2266: error: resource attr/colorPrimaryVariant (aka unitCycle.app:attr/colorPrimaryVariant) not found.
    error: resource style/Theme.MaterialComponents.DayNight.DarkActionBar (aka unitCycle.app:style/Theme.MaterialComponents.DayNight.DarkActionBar) not found.
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2259: error: style attribute 'attr/colorPrimaryVariant (aka unitCycle.app:attr/colorPrimaryVariant)' not found.
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2260: error: style attribute 'attr/colorOnPrimary (aka unitCycle.app:attr/colorOnPrimary)' not found.
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2262: error: style attribute 'attr/colorSecondary (aka unitCycle.app:attr/colorSecondary)' not found.
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2263: error: style attribute 'attr/colorSecondaryVariant (aka unitCycle.app:attr/colorSecondaryVariant)' not found.
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2264: error: style attribute 'attr/colorOnSecondary (aka unitCycle.app:attr/colorOnSecondary)' not found.
    unitCycle.app-mergeReleaseResources-31:/values/values.xml:2266: error: resource attr/colorPrimaryVariant (aka unitCycle.app:attr/colorPrimaryVariant) not found.
    error: failed linking references.* Try:
    Run with --debug option to get more log output.
    Run with --scan to get full insights.
    Get more help at https://help.gradle.org.

2024-12-17 11:16 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

有没有知道怎么解决的。。

1***@qq.com

1***@qq.com (作者)

最烦人的是 打包失败也占用打包次数。。。

1***@qq.com

1***@qq.com (作者)

up~up~

1***@qq.com

1***@qq.com (作者)

已经把重复引入的包删除重新引入了还是报错

1***@qq.com

1***@qq.com (作者)

这次打包是uni_modules 右键从插件市场更新后再试,还有1分钟就开始打包了

1***@qq.com

1***@qq.com (作者)

错误日志https://app.liuyingyong.cn/build/errorLog/0c8918c0-bc27-11ef-a5ab-1f1cfb5e4364

1***@qq.com

1***@qq.com (作者)

找到问题了 ,是我今早又引入了之前引入过的插件,导致了插件版本更新,新版本的插件可能是有点兼容性问题,打包就出错了。删了这个包和插件引入代码后就好了,又找到之前使用那版的插件包,就ok了

1***@qq.com

1***@qq.com (作者)

大家没事不要更新或重新导入插件市场引入的插件

要回复问题请先登录注册