Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play services out of date. Requires 10084000 but found 9879470. Can't update

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.

like image 569
Bjørn Skagen Avatar asked Dec 12 '16 11:12

Bjørn Skagen


People also ask

How do I force Google Play Services to update?

In the latest versions of Android, Google has added a new option of App Details for apps. This option can be used to open the Google Play Services page in Google Play Store and thus can be used to manually update Google Play Services. What is this? Open Settings of your phone and then tap on Apps and Notifications.

Is there a replacement for Google Play Services?

The best alternative is microG, which is both free and Open Source. Other great apps like Google Play Services are Open GApps, NanoDroid, BiTGApps and NikGApps. Google Play Services is a proprietary background service and API package for Android devices from Google.


2 Answers

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:

  1. Wait for release of an API 25 emulator system image that supports 10.0.1
  2. Create an emulator device using Rev 19 of the API 23 system image. In the Standalone SDK Manager, the emulator images are grouped by API and have names like, "Google APIs...System Image". Make sure you have Rev 19 installed.
  3. In your build, downgrade to a previous version of Firebase to allow use of the API 25 emulator image.

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.

like image 62
Bob Snyder Avatar answered Oct 22 '22 17:10

Bob Snyder


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'
like image 41
James Norman Avatar answered Oct 22 '22 18:10

James Norman