How can I implement Firebase into a detached app?

I am trying to implement Firebase Push Notifications in conjunction with the react-native-push-notification library, into my application but I am unable to add the dependency to build.gradle.

The instructions from react-native-push-notification is to added the following to ALL dependencies added by Expo:

compile project(’:react-native-push-notification’)
compile (‘’) {
force = true;

However, I get the error when I add (only) compile project(’:react-native-push-notification’):

"Execution failed for task ‘:app:transformClassesWithJarMergingForDebug’. duplicate entry: com/google/android/gms/iid/zzb$zza$zza.class"

This error means that there are two entries for

Can you help me identify where this is coming from? I assumed that perhaps it’s being bundled in as part of host.exp.exponent:expoview:21.0.0@aar so I added

exclude group: ‘’ - The problem unfortunately still exists.

Here’s my app/build.gradle dependency list (without any modification):

compile fileTree(dir: ‘libs’, include: [’*.jar’])
testCompile 'junit:junit:4.12’
compile '’
compile '’
compile ''
compile(‘host.exp.exponent:expoview:21.0.0@aar’) {
exclude group: ‘’, module: 'facebook-android-sdk’
exclude group: ‘’, module: 'audience-network-sdk’
exclude group: ‘io.nlopez.smartlocation’, module: 'library’
transitive = true;
compile (‘’)
compile(‘’) {
exclude module: ‘play-services-ads’
compile(‘io.nlopez.smartlocation:library:3.2.11’) {
transitive = false

My questions:

  1. Is the Expo dependency bundling in gms?
  2. If so, how can I remove it? I really need to get this working.

P.S. Sorry for not knowing how to format code snippets


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.