web-dev-qa-db-fra.com

Type de programme déjà présent: Android.support.v13.view.DragAndDropPermissionsCompat

J'ai mis à jour Android studio à 3.1 et cette erreur apparaît après la mise à jour: 

 Program type already present: Android.support.v13.view.DragAndDropPermissionsCompat
    Message{kind=ERROR, text=Program type already present: Android.support.v13.view.DragAndDropPermissionsCompat, sources=[Unknown source file], tool name=Optional.of(D8)}

org.gradle.api.tasks.TaskExecutionException: l'exécution a échoué pour la tâche ': app: transformDexArchiveWithExternalLibsDexMergerForDebug'.

Causée par: Java.lang.RuntimeException: com.Android.builder.dexing.DexArchiveMergerException

Causé par: com.Android.tools.r8.CompilationFailedException: la compilation n'a pas abouti >

 org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.Java:100)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.Java:70)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.Java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.Java:62)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.Java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.Java:60)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.Java:97)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.Java:87)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.Java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.Java:52)
    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:248)
    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:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:230)
    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:626)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.Java:581)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.Java:98)
    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:1142)
    at Java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.Java:617)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.Java:55)
    at Java.lang.Thread.run(Thread.Java:745)
Caused by: Java.lang.RuntimeException: com.Android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\0.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\1.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\2.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\3.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\4.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\5.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\6.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\7.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\10.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\11.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\12.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\14.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\28.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\29.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\30.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\31.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\32.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\33.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\34.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\35.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\36.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\37.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\38.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\39.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\40.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\41.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\42.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\43.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\44.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\45.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\46.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\48.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\49.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\50.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\51.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\52.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\53.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\54.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\55.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\56.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\57.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\58.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\59.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\60.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\62.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\63.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\64.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\65.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\66.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\70.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\71.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\72.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\73.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\83.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\84.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\85.jar
    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:212)
    at Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at Sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.Java:62)
    at Sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.Java:43)
    at Java.lang.reflect.Method.invoke(Method.Java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.Java:73)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.Java:46)
    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:121)
    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:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.Java:92)
    ... 32 more
Caused by: com.Android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\0.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\1.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\2.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\3.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\4.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\5.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\6.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\7.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\10.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\11.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\12.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\14.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\28.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\29.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\30.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\31.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\32.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\33.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\34.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\35.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\36.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\37.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\38.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\39.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\40.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\41.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\42.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\43.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\44.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\45.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\46.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\48.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\49.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\50.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\51.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\52.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\53.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\54.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\55.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\56.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\57.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\58.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\59.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\60.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\62.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\63.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\64.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\65.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\66.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\70.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\71.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\72.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\73.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\83.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\84.jar, D:\ISLaMiC\SoBhY\Sho8l\amira\aaa\app\build\intermediates\transforms\dexBuilder\debug\85.jar
    at com.Android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.Java:124)
    at com.Android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.Java:109)
    at com.Android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.Java:101)
    at com.Android.build.gradle.internal.transforms.ExternalLibsMergerTransform.transform(ExternalLibsMergerTransform.kt:123)
    at com.Android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.Java:221)
    at com.Android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.Java:217)
    at com.Android.builder.profile.ThreadRecorder.record(ThreadRecorder.Java:102)
    ... 48 more
Caused by: com.Android.tools.r8.CompilationFailedException: Compilation failed to complete
    at com.Android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.Java:76)
    at com.Android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.Java:45)
    at com.Android.tools.r8.D8.run(D8.Java:88)
    at com.Android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.Java:107)
    ... 53 more
Caused by: com.Android.tools.r8.utils.AbortException
    at com.Android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.Java:77)
    at com.Android.tools.r8.utils.Reporter.fatalError(Reporter.Java:58)
    at com.Android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.Java:67)
    ... 56 more



apply plugin: 'com.Android.application'

Android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.amira.amira.amira"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "Android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-Android.txt'), 'proguard-rules.pro'
        }
    }
    buildToolsVersion '27.0.3'
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //noinspection GradleCompatible
    implementation 'com.Android.support:appcompat-v7:27.1.0'
    implementation 'com.Android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.Android.support:design:27.1.0'
    implementation 'com.google.firebase:firebase-storage:12.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.Android.support.test:runner:1.0.1'
    androidTestImplementation 'com.Android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.Android.support:design:27.1.0'
    implementation 'com.google.firebase:firebase-auth:12.0.0'
    implementation 'com.google.firebase:firebase-database:12.0.0'
    implementation 'com.soundcloud.Android:android-crop:1.0.1@aar'
    implementation 'com.github.dmytrodanylyk.Android-process-button:library:1.0.4'
    implementation 'com.appeaser.sublimepickerlibrary:sublimepickerlibrary:2.1.1'
    implementation 'com.github.yukuku:ambilwarna:2.0.1'
    implementation 'com.wdullaer:materialdatetimepicker:3.5.1'
    implementation 'com.hbb20:ccp:2.1.4'
    implementation 'com.github.clans:fab:1.6.4'
    implementation 'com.bignerdranch.Android:recyclerview-multiselect:0.2'
    implementation 'com.Android.support:appcompat-v7:27.1.0'
    implementation 'com.Android.support:cardview-v7:27.1.0'
    implementation 'com.github.clans:fab:1.6.4'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.github.bumptech.glide:glide:4.6.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
    implementation 'com.Android.support:cardview-v7:27.1.0'
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.github.yalantis:ucrop:2.2.1'
}
apply plugin: 'com.google.gms.google-services'

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.Android.tools.build:gradle:3.1.0'
        classpath 'com.google.gms:google-services:3.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
33
Sobhy Elbhwashy

configurez-le dans les dépendances dans le fichier gradle

    configurations {
    all*.exclude group: 'com.Android.support', module: 'support-v13'
    }

par exemple:-

dependencies {

    configurations {
    all*.exclude group: 'com.Android.support', module: 'support-v13'
    }
    //dependencies.....
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.Android.support:appcompat-v7:27.1.1'
    implementation 'com.Android.support:design:27.1.1'
    implementation 'com.Android.support:support-v4:27.1.1'
}
81
kishu mewara

Tout d’abord, vous devez rechercher les dépendances dupliquées dans votre module build.gradle. Si vous exécutez la ligne suivante dans votre projet (dans ce cas, app est le nom de votre module):

Si vous utilisez linux

./gradlew app:dependencies

ou utilisez ce qui suit si vous utilisez Windows

gradlew app:dependencies

Vous pouvez voir les arbres de dépendances et vérifier les bibliothèques dupliquées ici.

Les dépendances suivantes utilisant l’ancienne version des bibliothèques de support:

implementation 'com.soundcloud.Android:android-crop:1.0.1@aar'
implementation 'com.github.dmytrodanylyk.Android-process-button:library:1.0.4'
implementation 'com.appeaser.sublimepickerlibrary:sublimepickerlibrary:2.1.1'

Vous devez donc en exclure les bibliothèques de support.

Ensuite, vous avez également une ligne dupliquée de dépendances. 

Vos dépendances build.gradle devraient ressembler à ceci:

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.Android.support.test:runner:1.0.1'
    androidTestImplementation 'com.Android.support.test.espresso:espresso-core:3.0.1'

    implementation 'com.Android.support.constraint:constraint-layout:1.0.2'
    // support design implicitly using appcompat-v7 and support-v4
    //implementation 'com.Android.support:appcompat-v7:27.1.0'
    implementation 'com.Android.support:design:27.1.0'
    implementation 'com.Android.support:cardview-v7:27.1.0'
    implementation 'com.Android.support:support-annotations:27.1.0'
    implementation 'com.Android.support:gridlayout-v7:27.1.0'
    implementation 'com.Android.support:recyclerview-v7:27.1.0'


    implementation 'com.google.firebase:firebase-storage:12.0.0'
    implementation 'com.google.firebase:firebase-auth:12.0.0'
    implementation 'com.google.firebase:firebase-database:12.0.0'

    implementation ('com.soundcloud.Android:android-crop:1.0.1@aar') {
         exclude group: 'com.Android.support'
         exclude module: 'support-annotations'
         exclude module: 'support-v4'
    }

    implementation ('com.github.dmytrodanylyk.Android-process-button:library:1.0.4') {
         exclude group: 'com.Android.support'
         exclude module: 'support-v4'
    }

    implementation 'com.appeaser.sublimepickerlibrary:sublimepickerlibrary:2.1.1') {
         exclude group: 'com.Android.support'
         exclude module: 'appcompat-v7'
         exclude module: 'support-v4'
         exclude module: 'support-annotations'
         exclude module: 'gridlayout-v7'
    }

    implementation 'com.github.yukuku:ambilwarna:2.0.1'
    implementation 'com.wdullaer:materialdatetimepicker:3.5.1'
    implementation 'com.hbb20:ccp:2.1.4'
    implementation 'com.github.clans:fab:1.6.4'

    implementation ('com.bignerdranch.Android:recyclerview-multiselect:0.2') {
         exclude group: 'com.Android.support'
         exclude module: 'appcompat-v7'
         exclude module: 'recyclerview-v7'
    }


    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.github.bumptech.glide:glide:4.6.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.github.yalantis:ucrop:2.2.1'
}
13

Ce code dans les dépendances au niveau de l'application a fonctionné pour moi.

dependencies {
    configurations {
        all*.exclude group: 'com.Android.support', module: 'support-v13'
    }
}
1
Phani varma

Cela peut se produire car vous avez un doublon dans votre fichier build.gradle. Vous utilisez différentes versions des mêmes bibliothèques:

 implementation 'com.google.firebase:firebase-auth:12.0.0'
 implementation 'com.google.firebase:firebase-database:12.0.0'
 implementation 'com.google.firebase:firebase-storage:12.0.0'

cela peut être la raison.Ajoutez maven {url " https://maven.google.com "} à votre build.gradle de niveau racine, les dépendances Firebase sont désormais disponibles via maven.google.com. 

0
Liya