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.

Compatibility with react-native-firebase

See original GitHub issue

| Version | 0.21.1 | | Affected OS | Android | | OS Version | 7.0 |

Hi, I’m trying to use this library and react-native-firebase in my project. But when I try to compile, I get this error

* What went wrong:
Execution failed for task ':react-native-device-info:processReleaseResources'.
> Error: more than one library with package name 'com.google.android.gms.license'

If I uninstall any of the 2, then the other one works.

Does anyone know how to fix it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:37

github_iconTop GitHub Comments

16reactions
codybrouwerscommented, Mar 21, 2018

@jurajkrivda Thanks so much for pointing me in the right direction, all I ended up needing to add was this line to my android/gradle.properties file:

googlePlayServicesVersion=11.0.4

Found the version number by looking in this folder (Mac) for which version was the latest: ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services

I also didn’t end up needing to exclude the com.google.android.gms group.

11reactions
codybrouwerscommented, Mar 20, 2018

Seeing the same issue, but am not using react-native-firebase. Tried adding the following to no avail:

    compile(project(':react-native-device-info')) {
        exclude group: 'com.google.android.gms'
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Firebase
React Native Firebase is the officially recommended collection of packages that brings React Native support for all Firebase services on both Android and ......
Read more >
[ ] RN 0.65 compatibility coming with react-native-firebase ...
Issue Hello, the react-native 0.65.0 is showing a warning because of this library with the message: "new NativeEventEmitter() was called ...
Read more >
@react-native-firebase/app - npm
A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, ...
Read more >
How to Build a React Native App and Integrate It with Firebase
In this tutorial, we are going to build a React Native app that is integrated with a Firebase backend. The app will support...
Read more >
Integrating Firebase with React Native - JScrambler Blog
Firebase is a Backend as a Service (BaaS) that provides an advantage to mobile developers who use React Native for developing mobile ...
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