Firebase Auth not working - 'Update Google Play services' msg on the emulator (Android)

后端 未结 4 979
遇见更好的自我
遇见更好的自我 2020-12-03 07:13

I\'m trying to use the Firebase Auth service with email and password. When I click on register I got an alert on the emulator that says :

\"Update Google Pla         


        
4条回答
  •  醉梦人生
    2020-12-03 07:44

    best way for future problems like this is .

    open you emulator go to settings > apps > Google Play Services

    you will find witch version your AVD is using

    play_services_version

    now that you know the number your AVD is using just use any

    version equal or bellow in your gradle

    dependencies {
    
        compile fileTree(include: ['*.jar'], dir: 'libs')
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:24.0.0'
        compile 'com.android.support:design:24.0.0'
        // Fire base
        compile 'com.google.firebase:firebase-auth:9.0.1'
        compile 'com.google.firebase:firebase-database:9.0.1'
        compile 'com.google.android.gms:play-services-auth:9.0.1'
    }
    
    apply plugin: 'com.google.gms.google-services'
    

    this work for me , i hope it helps !

提交回复
热议问题