任务 ':app:mergeDexRelease 执行失败

Execution failed for task ':app:mergeDexRelease

提问人:Hind Ibrahim 提问时间:11/16/2023 更新时间:11/16/2023 访问量:9

问:

失败:生成失败,出现异常。

  • 出了什么问题: 任务“:app:mergeDexRelease”执行失败。

执行 com.android.build.gradle.internal.tasks.DexMergingTaskDelegate 时出错 执行工作项时失败 > 执行 com.android.build.gradle.internal.tasks.DexMergingWorkAction 时出错 > com.android.builder.dexing.DexArchiveMergerException:合并 dex 存档时出错: 如需了解如何解决该问题,请访问 https://developer.android.com/studio/build/dependencies#duplicate_classes。 类型 androidx.activity.R$id 定义多次:C:\GymsGenius\app\build\intermediates\project_dex_archive\release\out\5aeafbeccb117d4b736d800267b3a65fe175116feb5e422f7748aebf1c817c9c_0.jar:classes.dex、C:\GymsGenius\app\build\intermediates\project_dex_archive\release\out\cda950a839a088c8deead71a59d51fe5d00937b888ac9db07476f342eb8470a9_0.jar:classes.dex

原因:com.android.tools.r8.CompilationFailedException:编译无法完成,来源:C:\GymsGenius\app\build\intermediates\project_dex_archive\release\out\5aeafbeccb117d4b736d800267b3a65fe175116feb5e422f7748aebf1c817c9c_0.jar:classes.dex

语法错误

评论


答: 暂无答案