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.

google play services mismatch with firebase requirement

See original GitHub issue

I added the following dep because I’m still figuring out how to add project wide properties (always causing me more error that I barely understand):

compile(project(':react-native-geolocation-service')) {
        exclude group: 'com.google.android.gms', module: 'play-services-location'
    }
    compile 'com.google.android.gms:play-services-location:15.0.1'

and I used 15.0.1 because I’m also using firebase messaging which requires me to put this:

implementation "com.google.android.gms:play-services-base:15.0.1"
    implementation "com.google.firebase:firebase-core:16.0.1"
    implementation "com.google.firebase:firebase-messaging:17.1.0"
    implementation 'me.leolin:ShortcutBadger:1.1.21@aar'

in dependencies

and this on the bottom of app level gradle:

apply plugin: 'com.google.gms.google-services'

with that, I’m getting this error:

The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 11.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

Do u have any suggestion as to what kind of config that would let ur lib to work with this situation? I’m pretty new with this (managing dependencies manually), so any help would be great 😄

Thanks in advance for trying to solve RN navigator.geolocation issue 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Agontukcommented, Aug 20, 2018

No, I meant emulator will not give you the actual location. It’ll always return the same position that you entered. If you want to test your actual current position, you’re gonna need a real device.

1reaction
oakiscommented, Aug 18, 2018

@rayj10 Yes i use react-native-firebase, but not with messaging yet. This is part of my build.gradle:

implementation "com.google.android.gms:play-services-base:12.0.1"
implementation "com.google.firebase:firebase-core:12.0.1"
implementation "com.google.firebase:firebase-auth:12.0.1"
implementation "com.google.firebase:firebase-database:12.0.1"
implementation 'com.google.android.gms:play-services-location:12.0.1'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependencies of Firebase Android SDKs on Google Play ...
Which Firebase Android SDKs require Google Play services? Google Play services not required; Google Play services required or recommended.
Read more >
firebase integration error: Google Play Services out of date
Seems that your device is not running the required version of Google Play services. Try updating Google Play services on the the device...
Read more >
Android Mismatched Users - OneSignal Documentation
Mismatched Users is thrown when Google returns a ... Open your project's Firebase Developer Console and navigate to the Firebase ... No app...
Read more >
Library versions | Google Play services
The Google Services Gradle plugin checks for compatible versions of Google Play services and Firebase libraries. Standalone version matcher plugin. If you're ...
Read more >
The mystery of Google Play Services: Android's black box
11:20 - What advantages do apps have in using Google's Firebase Cloud Messaging (FCM) over alternative push notification APIs? 13:28 - How are ......
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