Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Google Play Services to 9.8.7

I am trying to implement firebase in android project but always getting:
Google Play services out of date. Requires 9877000 but found 9683480
My graddle project/app files look like:

...
compile 'com.google.firebase:firebase-core:9.8.0'
    compile 'com.google.firebase:firebase-database:9.8.0'
    compile 'com.google.firebase:firebase-auth:9.8.0'

}

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

and

dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.google.gms:google-services:3.0.0'

I created Nexus S emulator with API 23 and Target: Android 6.0 (Google APIs) x86_64

Inside emulator Google App Services version is 9.6.83

What should I do to be able to run firebase as don't know what to install or update anymore :/
I am new to android and don't know if I am missing something small.

like image 526
1110 Avatar asked Oct 25 '16 20:10

1110


People also ask

Why can't I update Google Play Services?

If still you cannot update Google Play Services, clearing cache can solve your problem. We also stated about this in the beginning as the reason. If you don't know, cache holds the app's data temporarily so that it can remember the information when you next open the app. Many times, old cache files get corrupted.

Why is Google Play Services not supported by my device?

When Google Play service finds any app to be outdated it might reflect this error on your Android device. So another potential solution you can try is to update all other apps on your device to get rid of the Google Play services unsupportable on your device error.


1 Answers

The updated Android tools (which contains the Android Emulator system image) isn't out yet. Only once that is out will your emulators have Google Play Services 9.8, which is a prerequisite for Firebase SDK 9.8.

If you want to test on an emulator, you will have to downgrade your app to Firebase SDK 9.6 for the moment.

If you deploy to a physical device, it'll likely already have the latest version.

like image 108
Frank van Puffelen Avatar answered Oct 18 '22 15:10

Frank van Puffelen