Manifest merger failed : Attribute application@appComponentFactory
See original GitHub issueHello @tommybuonomo, I have tried to create gradle tree with your library, but exception occured.
OS: Manjaro 17.1.1 Android Studio: 3.2.20 Canary Branch
Steps to reproduce
- Create demo project with Android 28+
- Build with default gradle.build
- Added your library implementation
- Exception occur
Here is exception backtrack:
Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0-alpha3] AndroidManifest.xml:22:18-86
is also present at [com.android.support:support-compat:28.0.0-alpha3] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-19:19 to override.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Manifest merger failed : Attribute application ... - Stack Overflow
Please help me to solve this issue. Error Message: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.
Read more >Manifest merger failed : Attribute application ... - GitHub
I was getting below build error when I used Glide(4.10.0) in my non-Androidx project. Attribute application@appComponentFactory value=(android.support.v4.app.
Read more >Android – Manifest merger failed : Attribute application ...
Error Message : Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from
Read more >Question - Lot of android build warnings and manifest merge fail
Basic error is a manifest merge fail which I can only guess at fixing ... Manifest merger failed : Attribute application@appComponentFactory ...
Read more >Manifest merger failed on SDK 4.4.57218.1211 - Android
On gradle sync project: ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@IdeoG @assimtsenoussi I think you’re not using the android x format and this is why the build fail. Can you refactor your projects ? You can do it via AndroidStudio but do it it carefully (commit your current work before) Best regards.
add these two properties in gradle.properties file
android.useAndroidX=true android.enableJetifier=true
It solved my problem.