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

See original GitHub issue

Hi all

I’ve been trying to use nativescript-plugin-firebase with NativeScript 5.4

I have been getting this error with any version greater than 9.0.4:

Gradle build...
         + setting applicationId
         + applying user-defined configuration from /Users/alex.miller/dev/ns54migrate/App_Resources/Android/before-plugins.gradle
         + applying user-defined configuration from /Users/alex.miller/dev/ns54migrate/App_Resources/Android/app.gradle
         + using support library version 28.0.0
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: /Users/alex.miller/dev/ns54migrate/node_modules/nativescript-plugin-firebase/platforms/android/nativescript_plugin_firebase.aar
         + adding aar plugin dependency: /Users/alex.miller/dev/ns54migrate/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
/Users/alex.miller/dev/ns54migrate/platforms/android/app/src/main/AndroidManifest.xml:22:18-91 Error:
        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.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:17:2-38:16 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> 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.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:17:2-38:16 to override.

I was getting this on my main app so I created a skeleton app with only some basic things enabled which can be found here: https://github.com/Codex-/ns54sample

I read through this issue and attempted the fixes suggested (as you can see in the sample repo) but have still not been able to build this successfully.

Does anyone have any suggestions? Currently i’m not in a position where I can upgrade to NS 6 (just yet).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EddyVerbruggencommented, Feb 12, 2020

Yeah you’re right

0reactions
Codex-commented, Feb 12, 2020

Okay, cheers.

The readme needs to be updated then as it reads:

Plugin version 10.0.0 works with NativeScript 5.2+, and 6.1+ is recommended. Using an older version? Stick to plugin version < 10.

But < 6 is only compatible with <= 9.0.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "Manifest merger failed" error after updating to a new ...
I'm not using different versions of libraries and got the same error, it's happened after ... Manifest merger failed : Attribute meta-data#android.support.
Read more >
Manifest Merger Fails with Multiple Errors in Android Studio
A merge conflict occurs while merging whenever the value of any attribute is different in the two Manifest files. However, if an element...
Read more >
manifest merger failed with multiple errors see logs - Edureka
The initial process would be to open the manifest application known as the AndroidManifest.xml and then click on the Merged Manifest tab below ......
Read more >
Manifest merger failed in Unity+Android - Wikitude
Hi, When building an Android APK in Unity (version 2018.3.8f1 Personal) I get the following error: Manifest merger failed : uses-sdk:minSdkVersion 16 cannot...
Read more >
manifest merger failed with multiple errors see logs android ...
Manifest Merger failed with multiple errors in Android Studio ... 1. Open your gradle console, then you see gradle suggest you to add...
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