Category Archives: How to Fix

To solve the execution failed for task ‘: app:transformDexArchiveWithDexMergerForDebug ‘

directory

complete error message

solution 1

solution 2

solution 3

summary


when importing SDK package, this error was suddenly reported. Please see the following solution, there is always one that can solve

complete error message

org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:145)
	at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:115)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75)
	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)
	at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:100)
	at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75)
	at org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:62)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.java:43)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
	at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:49)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:32)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:57)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:32)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:64)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:29)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:45)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
	at org.gradle.util.Swapper.swap(Swapper.java:38)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
	at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)
	at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
	at org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:143)
	at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:115)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75)
	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)
	at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:100)
	at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75)
	at org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:62)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.java:43)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
	at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:49)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:32)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:57)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:32)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:64)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:29)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:45)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
	at org.gradle.util.Swapper.swap(Swapper.java:38)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
	at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:597)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
	... 3 more
Caused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/140, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/externalLibsDexMerger/debug/0, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/136.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/137.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/138.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/139.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.cl.xdialog.BuildConfig
	at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)
	at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
	at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
	... 30 more
Caused by: com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/140, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/externalLibsDexMerger/debug/0, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/136.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/137.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/138.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/139.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.cl.xdialog.BuildConfig
	at com.android.build.gradle.internal.transforms.DexMergerTransform.transform(DexMergerTransform.java:238)
	at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239)
	at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
	... 42 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/140, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/externalLibsDexMerger/debug/0, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/136.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/137.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/138.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/139.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.cl.xdialog.BuildConfig
	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
	at com.android.build.gradle.internal.transforms.DexMergerTransform.transform(DexMergerTransform.java:233)
	... 45 more
Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/140, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/externalLibsDexMerger/debug/0, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/136.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/137.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/138.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/139.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.cl.xdialog.BuildConfig
Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/140, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/externalLibsDexMerger/debug/0, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/136.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/137.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/138.jar, /Users/chenshili/Desktop/Github_gr/xDialog/app/build/intermediates/transforms/dexBuilder/debug/139.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.cl.xdialog.BuildConfig
	at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:132)
	at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:117)
	at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:101)
	at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:36)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
	at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:65)
	at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:43)
	at com.android.tools.r8.D8.run(D8.java:90)
	at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:115)
	... 2 more
Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: com.cl.xdialog.BuildConfig
	at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:116)
	at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:74)
	at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:59)
	... 5 more

solution 1

in build.gradle:

 defaultConfig {
        applicationId "com.cl.xdialog"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }    注意重点在----->  multiDexEnabled true

solution 2

这种方式解决项目包重复依赖问题非常有效。
gradlew :demo:dependencies

solution 3

android {
  ...
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}

summary

if the above method has not solved your problem, welcome to leave a message

if you have a better solution, please leave a message

Error: transport error 202: bind failed: address already in use

temporarily copies a project, cp -r

modify the server.xml port number.

start or error

ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

netstat looked at the server configuration port number is not occupied.

look at the startup script, there is the specified remote port number address=XXX;

modify the remote port number, then boot is good.

Why can’t I open the R tidyverse package after installation

help: R tidyverse package problem why can’t you open

after installing

library(tidyverse)
Error: package or namespace load failed for 'tidyverse' in loadNamespace(i, c(lib.loc, .libPaths())), versionCheck = vI[[i]]):
 Namespace 'rlang' 0.4.2 is loaded, but needed = 0.4.3
Also: Warning message:
The programming package 'tidyverse' was built with R version 3.6.3. 

Installation of APK: install_ PARSE_ FAILED_ INCONSISTENT_ CERTIFICATES

appears similar to INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES when installing the APK file, such problems are mainly caused by signature conflicts. For example, if you use ADB’s debug authority signature, but later install the same file after using standard sign signature, such error prompt will occur. The solution is to uninstall the original version and then install it. The adb install – R parameter does not solve the problem.

VMRC installation occurred: failed to install the hcmon driver

according to the official document VMware Remote Console 10.0.1 release notes

access address: https://docs.vmware.com/cn/VMware-Remote-Console/10.0/rn/vmware-remote-console-1001-release-notes.html

  • installing VMware Remote Console on a system that already has other VMware applications installed may cause the following error:
    Failed to install the HCmon driver
    solution: go to the services TAB of task manager and stop VMUSBArbService. Then proceed with the installation.
    or, start the.msi installer from a command prompt window that you opened with administrator privileges.
  • Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

    error message:

    Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

    environmental phenomena

    chrome

    chrome browser, the previous access to the interface is what, access to the error of this url, the interface is still what looks like, but does not respond to mouse and keyboard events!
    press F12 to open the debug window. An error message appears:

    IE compatible kernel

    IE compatible kernel browser, after opening the interface is blank, press F12, open the debugging window, display the following content:

    error cause:

    online search, there are articles mentioned is response.close, response.end and so on caused, but I visited the JSP page, how can it be related to this!

    based on this page on another problem occurred “HTTP Status 500 – /online.jsp (line: 495, column: 2) File [/foot.jsp] not found” opened the JSP page code analysis, found the problem:
    actually USES JSP :include

    <jsp:include flush="true" page="/head.jsp" ></jsp:include>

    The

    head.jsp file does not exist, which results in this problem!

    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    PS: mice no girlfriend particularly depressed, finally a bat agreed to marry him, the mouse is very happy. Others laugh him to have no vision, mouse: you understand what, she somehow is a stewardess.

    launch failed.Binary Not found in Linux / Ubuntu solution

    launch failed.Binary not found the solution:

    first of all when you’re confused about mingw solutions online, I’ll tell you to stop reading about mingw. Under Linux, mingw is not used, but

    is directly completed by Linux GCC

    1, look at your Eclipse Console output, if there is g++ not found, it means your system g++ did not install successfully.

    Solution: Ctrl+Alt+t to terminal (console) mode, enter sudo apt-get install g++

    2, not yet?

    Project-> Properties-> C/C++Build-> Settings-> Binary Parsers

    check GNU Elf Parser and Elf Parser

    and then don’t forget about Project-> Build All (Ctrl+B), then run (Ctrl+ F11)

    . If you see the item below come out called Binaries, Congradulations! Configured successfully, ready to run!

    3, not yet?

    check your file name is XXX. CPP ?And XXX must not contain “. “such symbols


    under Windows is best used mingw…

    http://hi.baidu.com/doctorjohnson/blog/item/2fafa2431187e11d9213c67e.html

    【wget failed】Connecting to 127.0.0.1:7890… failed: Connection refused.

    always reports this error when downloading the configuration file while configuring the coolfly agent. At first, I thought it was the problem that the agency website gave out there, stalling for a long time is not good. Then during wine installation today, after adding the PPA Channel, execute the Apt-get Update to report the same error. The error was finally found at

    set before the proxy address, not changed back.

    --2020-02-18 12:10:33--  https://rbq.caipin.pro/link/cias4tBlguQQ9EVF?clash=1
    Connecting to 127.0.0.1:7890... failed: Connection refused.
    

    although (set) inside (network proxy) was changed back to automatic, it could be seen from env| grep-i proxy command that the system was still accessed through the proxy port, but VPN was not set successfully at this time, so it became unable to download.

    i2@i2:~/Downloads $ env|grep -I proxy
    http_proxy=http://127.0.0.1:7890/
    socks_proxy=socks://127.0.0.1:7891/
    https_proxy=https://127.0.0.1:7890/
    
    

    the solution is as follows [1] :

    $ unset http_proxy
    $ unset https_proxy
     
    $ env|grep -I proxy
    未输出任何东西
    

    Specific reference:

    [1]
    the author: no slope of the former Soviet union
    link: https://www.jianshu.com/p/d6730c16a4c9
    source: Jane books
    copyright owned by the author. Commercial reprint please contact the author for authorization, non-commercial reprint please indicate the source.

    Solution to the problem of installing lxml in Pip

    1. The following error occurred while installing LXML using PIP:

    & gt; > > pip install lxml

    C:\Users\Chen>pip install lxml
    Collecting lxml
      Using cached lxml-3.5.0.tar.gz
    Installing collected packages: lxml
      Running setup.py install for lxml ... error
        Complete output from command "d:\program files\python\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\CHENJU~1\\AppData\\Local\\Temp\\pip-build-id5180h6\\lxml\\setup.py';
        Building lxml version 3.5.0.
        Building without Cython.
        ERROR: b"'xslt-config' \xb2\xbb\xca\xc7\xc4\xda\xb2\xbf\xbb\xf2\xcd\xe2\xb2\xbf\xc3\xfc\xc1\xee\xa3\xac\xd2\xb2\xb2\xbb\xca\xc7\xbf\xc9\xd4\xcb\xd0\xd0\xb5\xc4\xb3\xcc\xd0\xf2\r\n\xbb\xf2\xc
        ** make sure the development packages of libxml2 and libxslt are installed **
    
        Using build configuration of libxslt
        running install
        running build
        running build_py
        creating build
        creating build\lib.win32-3.5
        creating build\lib.win32-3.5\lxml
        copying src\lxml\builder.py -> build\lib.win32-3.5\lxml
        copying src\lxml\cssselect.py -> build\lib.win32-3.5\lxml
        copying src\lxml\doctestcompare.py -> build\lib.win32-3.5\lxml
        copying src\lxml\ElementInclude.py -> build\lib.win32-3.5\lxml
        copying src\lxml\pyclasslookup.py -> build\lib.win32-3.5\lxml
        copying src\lxml\sax.py -> build\lib.win32-3.5\lxml
        copying src\lxml\usedoctest.py -> build\lib.win32-3.5\lxml
        copying src\lxml\_elementpath.py -> build\lib.win32-3.5\lxml
        copying src\lxml\__init__.py -> build\lib.win32-3.5\lxml
        creating build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\__init__.py -> build\lib.win32-3.5\lxml\includes
        creating build\lib.win32-3.5\lxml\html
        copying src\lxml\html\builder.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\clean.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\defs.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\diff.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\formfill.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\html5parser.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\soupparser.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\usedoctest.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\_html5builder.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\_setmixin.py -> build\lib.win32-3.5\lxml\html
        copying src\lxml\html\__init__.py -> build\lib.win32-3.5\lxml\html
        creating build\lib.win32-3.5\lxml\isoschematron
        copying src\lxml\isoschematron\__init__.py -> build\lib.win32-3.5\lxml\isoschematron
        copying src\lxml\lxml.etree.h -> build\lib.win32-3.5\lxml
        copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.5\lxml
        copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\config.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\tree.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\uri.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.5\lxml\includes
        copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.5\lxml\includes
        creating build\lib.win32-3.5\lxml\isoschematron\resources
        creating build\lib.win32-3.5\lxml\isoschematron\resources\rng
        copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.5\lxml\isoschematron\resources\rng
        creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl
        copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl
        copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl
        creating build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.5\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
        running build_ext
        building 'lxml.etree' extension
        error: Unable to find vcvarsall.bat
    
        ----------------------------------------

    2. Baidu to see how to solve the problem:

    it turns out that this problem requires a separate operating system to handle. Nothing under window.

    3. Linux system processing:

    sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev

    The or yum install…

    and then proceed with PIP install LXML

    Error analysis of veeam backup: failed to create NFC download stream

    Veeam backup virtual machine error: Failed to create NFC download stream.

    log is:

    2017/8/13 22:06:15 :: Processing 10.1_ad02 Error: DiskLib Error: [11].

    Failed to create NFC download stream. The NFC path: [NFC:// conn: 192.168.10.12 nfchost: ha – host, STG: 5942 [email protected]_ad02/10.112 _AD02. VMX].

    root cause analysis: https://www.veeam.com/kb1198

    1, port problems, Telnet host 902 port can be excluded;

    2. Access problem, re-verify the root account when adding the host;

    3. Physical host setup problem, check DNS;

    final problem:

    added by physical host, named Chinese caused, changed because English character backup copy is normal

    reproduced in: https://blog.51cto.com/aragoon/2398864