Pushwoosh / pushwoosh-react-native-plugin

Other
57 stars 43 forks source link

Manifest merger failed #65

Closed TexxUkr closed 5 years ago

TexxUkr commented 5 years ago

The issue appears on compilation stage for android:

FAILURE: Build failed with an exception.

Steps to reproduce:

OR

Additional: I have been using pushwoosh-react-native-plugin in my project for some period of time without issues but starting from today I am not able to build release anymore.

wfhm commented 5 years ago

Hi @TexxUkr,

Checking it

JanithaR commented 5 years ago

This is the source of this problem in the build.gradle file.

implementation "com.google.firebase:firebase-core:+"

Sangrene commented 5 years ago

This is due Google deploying new dependencies including breaking changes to android codebase (preparing androidx). The following pushwoosh-react-native-plugin dependencies are pulling the changes that break compiling :

com.google.firebase:firebase-core:+
com.google.firebase:firebase-messaging:+

You can update it by yourself or wait for this PR to be merged.

TexxUkr commented 5 years ago

Thanks a lot JanithaR, Sangrene, wfhm!

Updating the dependencies solves the issue. Will be waiting for the release as well. Thanks

JanithaR commented 5 years ago

Alternatively, you could do the following changes to the /app/build.gradle file.

implementation (project(':pushwoosh-react-native-plugin')) {
       exclude group: 'com.google.firebase', module: 'firebase-core'
       exclude group: 'com.google.firebase', module: 'firebase-messaging'
}
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
wfhm commented 5 years ago

@JanithaR @Sangrene @TexxUkr

Fixed with the latest release.