Reputation: 433
I am making an android app with Firebase. These are the lines causing problems:
dependencies {
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
I get this error:
Google Play services out of date. Requires 10084000 but found 9879470.
I run the app on an emulator. It doesn't seem possible to update GPS on the emulator, since it doesn't have Google Play Store.
In SDK Manager, it says the version of Google Player services is 38.
There is no apparent way to update this either.
Upvotes: 25
Views: 20530
Reputation: 38299
Updated 28 Feb 2017: Rev 4 of the emulator images for API 25 has been released and is available for download. It contains Google Play Services 10.2.98, which supports Firebase 10.2.0.
An emulator system image that supports Firebase 10.0.1 has not yet been released for API 25. The Rev 19 system image for API 23 does support 10.0.1.
You have three options:
When running the emulated device, you can see the version of Google Play Services installed by going to Settings > Apps and selecting Google Play Services.
Upvotes: 35
Reputation: 515
I just solved it by changing the version of the dependencies. just use:
compile 'com.google.firebase:firebase-core:9.6.0'
compile 'com.google.firebase:firebase-auth:9.6.0'
Upvotes: 11