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.

Attribute application@appComponentFactory Conficts ?

See original GitHub issue
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
	is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:24:5-40:19 to override.

I pulled the last code at commit 7fe07770fd04918e2e2ca2a5ac32ece24bf97402, but failed to build on AS 3.3.1 on my laptop. Is this normal ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mkamalscommented, Jun 24, 2019

@XinyueZ

This is wired to me as well. Since this piece of code running normally on AS 311 on my other laptop.

Can someone confirm me that this’s possible to put android.support.v4 and androidx.core artifacts side by side in an Android project?

No It is no possible to use both at the same time.

1reaction
XinyueZcommented, Feb 17, 2019

I do not have this problem in my AS 331. However, to the problem it self, you can try to add android:appComponentFactory="placeholder" to the <application>, it might help you.

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
These two lines automatically resolved my dependency conflicts ... Attribute application@appComponentFactory value=(android.support.v4.app.
Read more >
Tutorial: How to Fix a Failing Android Build Due to [androidx ...
RuntimeException: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.
Read more >
SOLVED Error: Manifest merger failed. Attribute application ...
manifest merger failed : Attribute application @ appComponentFactory value=(android.support.v4.app.
Read more >
<application> | Android Developers
The declaration of the application. This element contains subelements that declare each of the application's components and has attributes ...
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