I create an application using firebase. When I run on the emulator and try to log in, I get the error:

Local module descriptor class for com.google.firebase.auth not found

Google Play services out of date. Requires 9452000 but found 8185470

And on the emulator pops up this:

Update Google Play services

"AppName" won't run update google play services

I updated everything as advised in the English part of the forum, but it did not help. Any idea how to fix this? Thank!

This is part of build.gradle (module)

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.firebase:firebase-database:9.4.0' compile 'com.google.firebase:firebase-auth:9.4.0' compile 'com.google.firebase:firebase-core:9.4.0' compile 'de.hdodenhof:circleimageview:1.3.0' compile 'com.github.bumptech.glide:glide:3.6.1' } apply plugin: 'com.google.gms.google-services' 

build.gradle (project)

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

And the google play services version on the emulator: 8.1.85

    1 answer 1

    This is a problem on the device / emulator. You need to update Google services on the device / emulator itself.

    Switching to Genymotion solves the problem.

    • I tried, but that it does not update, although maybe I did not understand the essence correctly. (I found the google play services search in the emulator and tried to update them like this, but it didn't work out. Or should I do this through the android studio? So I went through the sdk manager and updated everything) - Valera Kvip
    • @Vcpp, try to run on a real device, if it starts, then the problem is only in the emulator. Perhaps you need to update them slyly or switch to Genymotion - YuriySPb
    • @ValeraKvip, What exactly does your mean но не вышло ? - Vladyslav Matviienko