Conflict between two libraries


#1

Hi ! I use the plugin Firebase (https://github.com/EddyVerbruggen/nativescript-plugin-firebase) and the plugin Wonderpush : https://github.com/wonderpush/wonderpush-nativescript-sdk . But when I try to compile for Android, I get an error :

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture snapshot of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
> The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[11.0.4,11.0.4], [15.0.1,15.0.1]], but resolves to 15.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

I think it’s because Firebase plugin uses version 15.0.1 of the library while Wonderpush uses version 11.0.4.

How can I fixed this conflict into my project ?

Thanks


#2

Hey @captainhaddock,

Assuming each of the plugins doesn’t do anything specific to that particular version, you should be able to bump one of them so they match.

I’ve elaborated on this in more detail here:

Best,


#3

Finally I solved my problem by fixing each version of the dependencies in the app.gradle.

Thanks !