Manifest merger failed
See original GitHub issueHi 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Yeah you’re right
Okay, cheers.
The
readme
needs to be updated then as it reads:But < 6 is only compatible with <= 9.0.4