web-dev-qa-db-fra.com

La fusion de manifeste a échoué avec plusieurs erreurs. Consultez les journaux lors de la mise à jour des dépendances Firebase et gsm.

Je suis vraiment nouveau avec Android et j’ai eu ce problème alors que j’essayais de mettre à niveau toutes mes dépendances afin de prendre en charge la dernière erreur firebase lors de la mise à niveau de GSM et de firebase.

Voici mon app/build.graddle

apply plugin: 'com.Android.application'

Android {
    compileSdkVersion 25
    buildToolsVersion '27.0.3'
    defaultConfig {
        applicationId '******'
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 22
        /** Version Specification : Database.API.Application **/
        versionName "1.5.2"
        testInstrumentationRunner "Android.support.test.runner.AndroidJUnitRunner"
        aaptOptions.cruncherEnabled = false
        aaptOptions.useNewCruncher = false
        multiDexEnabled true
    }
    productFlavors {
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-Android.txt'),
                    'proguard-rules.pro'
        }
    }
}
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.google.gms:google-services:3.2.1'
    }
}
repositories {
    mavenCentral()
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    //    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.Android.support.test.espresso:espresso-core:2.2.2') {
        exclude group: 'com.Android.support', module: 'support-annotations'
    }
    androidTestImplementation 'junit:junit:4.12'

    //    >>> for spika_chat
    implementation project(':libs:spika_chat')
    implementation project(':libs:sticker')
    //    <<< for spika_chat

    implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.Apache.http.client:4.1.2'

    //noinspection GradleCompatible
    implementation 'com.Android.support:appcompat-v7:25.4.0'
    implementation 'com.Android.support:support-v4:25.4.0'
    implementation 'com.Android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.Android.support:cardview-v7:25.4.0'
    implementation 'com.Android.support:recyclerview-v7:25.4.0'
    implementation 'com.Android.support:percent:25.4.0'
    implementation 'com.Android.support:design:25.4.0'
    implementation 'com.google.code.gson:gson:2.8.2'

    //noinspection GradleCompatible
    implementation 'com.google.Android.gms:play-services-gcm:12.0.1'
    implementation 'com.google.Android.gms:play-services-analytics:12.0.1'
    implementation 'com.google.Android.gms:play-services-tagmanager:12.0.1'
    implementation 'com.google.Android.gms:play-services-basement:12.0.1'
    implementation 'com.google.firebase:firebase-messaging:12.0.1'
    implementation 'com.google.firebase:firebase-appindexing:12.0.1'

    implementation 'com.facebook.Android:facebook-Android-sdk:4.26.0'
    implementation 'com.facebook.stetho:stetho:1.5.0'
    implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
//    implementation 'com.tune:tune-marketing-console-sdk:4.14.0'
    implementation 'com.tune:tune-marketing-console-sdk:4.15.1'
    implementation 'com.melnykov:floatingactionbutton:1.1.0'
    implementation 'com.jpardogo.materialtabstrip:library:1.0.6'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
    implementation 'com.github.Mariovc:ImagePicker:1.0.5'
    implementation 'de.cketti.share:share-intent-builder:0.0.2'
    implementation 'me.leolin:ShortcutBadger:1.1.21@aar'

    implementation 'com.google.Android.gms:play-services-auth:12.0.1'
    implementation 'pub.devrel:easypermissions:0.3.0'
    implementation('com.google.api-client:google-api-client-Android:1.23.0') {
        exclude group: 'org.Apache.httpcomponents'
    }
    implementation('com.google.apis:google-api-services-calendar:v3-rev307-1.23.0') {
        exclude group: 'org.Apache.httpcomponents'
    }

//    implementation 'com.google.Android.gms:play-services-auth:12.0.1'
//    implementation 'pub.devrel:easypermissions:0.3.0'
//    implementation('com.google.api-client:google-api-client-Android:1.23.0') {
//        exclude group: 'org.Apache.httpcomponents'
//    }
//    implementation('com.google.apis:google-api-services-calendar:v3-rev305-1.23.0') {
//        exclude group: 'org.Apache.httpcomponents'
//    }
}

apply plugin: 'com.google.gms.google-services'

Voici mes erreurs logcat:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugManifest'.
    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: Manifest merger failed with multiple errors, see logs
    at com.Android.builder.core.AndroidBuilder.mergeManifestsForApplication(AndroidBuilder.Java:524)
    at com.Android.build.gradle.tasks.MergeManifests.doFullTaskAction(MergeManifests.Java:143)
    at com.Android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.Java:106)
    at Sun.reflect.GeneratedMethodAccessor813.invoke(Unknown Source)
    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

j'ai essayé d'ajouter "xmlns: tools =" http://schemas.Android.com/tools "dans mon manifeste et ces codes" tools: replace = "Android: value" 'mais rien ne fonctionne pour moi.

17
Mass Immortal

Recherche des erreurs de fusion dans AndroidManifest.xml

enter image description here

Cliquez sur Manifest fusionné dans AndroidManifest.xml

enter image description here

Vous pouvez visualiser l’erreur de fusion du manifeste dans la colonne de droite. Cela peut aider à résoudre ce problème.

97

Je config FacebookAutentication avec FacebookSDK et plus tard, je modifie et config FireBaseAuth qui ont déjà config "com.facebook.sdk.ApplicationId".

donc vous n'avez pas besoin de ces lignes

<meta-data Android:name="com.facebook.sdk.ApplicationId" Android:value="@string/facebook_app_id"/> 

<activity Android:name="com.facebook.FacebookActivity"
        Android:configChanges= "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        Android:label="@string/app_name" />
    <activity Android:name="com.facebook.CustomTabActivity" Android:exported="true">
        <intent-filter>
            <action Android:name="Android.intent.action.VIEW" />
            <category Android:name="Android.intent.category.DEFAULT" />
            <category Android:name="Android.intent.category.BROWSABLE" />
            <data Android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>
0
cristian.nieto.dev