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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With