Manifest Merger failed with multiple errors, suggest solution does not work


This Content is from Stack Overflow. Question asked by Michel

There are already many items on this topic and i have read a lot of them but without any succes.

In my Merged Menifest the following error

Merging Errors: 
Warning Package name '' used in: AndroidManifest.xml, AndroidManifest.xml. 
animated-vector-drawable:28.0.0 manifest 
Warning Package name 'androidx.versionedparcelable' used in: AndroidManifest.xml, AndroidManifest.xml. 
support:versionedparcelable:28.0.0 manifest 
Error: Attribute application@appComponentFactory value=( from 
AndroidManifest.xml:22:18-91 is also present at AndroidManifest.xml:24:18-86 value=( 
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:20:5-83:19 to override. main manifest (this file), line 21

Now the warning annoy me but lets leave them for now.
The error is the problem and i have no clue what the problem is.
It suggests to add a “tools:replace…” but when i do that i just get the next error and besides it feels like bypassing the issue and not solving it.

I also don’t understand why i am getting error’s I did not update studio and i was just fixing some layout things. not even error’s just improvements.
It then first started with AndriodX messages. and then this. Maybe that’s a clue for somebody.

my AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>

    <!-- location via GPS -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <!-- needed to get photo's of the phone -->
    <!--<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />-->

    <!-- needed to use the camera and export -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <!-- needed to use the camera -->
    <!--<uses-permission android:name="android.permission.CAMERA" />-->

                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />

Can anybody help me how to read this error and find the solution?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?