question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manifest merger failed : Attribute application@appComponentFactory

See original GitHub issue

Hello @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

  1. Create demo project with Android 28+
  2. Build with default gradle.build
  3. Added your library implementation
  4. 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:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
tommybuonomocommented, Jul 29, 2018

@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.

2reactions
AmanGoyal-Oodlescommented, Dec 12, 2018

add these two properties in gradle.properties file

android.useAndroidX=true android.enableJetifier=true

It solved my problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found