hcwh
hcwh
  • 发布:2024-04-24 15:00
  • 更新:2024-04-24 15:00
  • 阅读:168

uniapp 打基座包报错:Execution failed for task ':app:mergeExtDexRelease'.

分类:HBuilderX

打基座包的时候出了上面的bug , 是打app 的基座包 求大佬~

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

    A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
    There was a failure while executing work items
    A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
    com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
    Type com.fk.simple.BuildConfig is defined multiple times: [PackagePath]/app/build/intermediates/external_file_lib_dex_archives/release/30_classes.jar:classes.dex, [PackagePath]/app/build/intermediates/external_file_lib_dex_archives/release/31_classes.jar:classes.dex
    Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.

  • Try:

    Run with --debug option to get more log output.
    Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeExtDexRelease'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:140)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
    at

2024-04-24 15:00 负责人:无 分享
已邀请:

要回复问题请先登录注册