Android Firebase Auth Crash on KitKat

后端 未结 1 952
南旧
南旧 2020-12-12 07:23

my app using Firebase Anonymous Auth is crashing on API19 (4.4).

E/AndroidRuntime: FATAL EXCEPTION: main
          Process: com.author.example, PID: 2191
            


        
相关标签:
1条回答
  • 2020-12-12 07:38

    The device or emulator you are testing with does not have a version of Google Play services installed that is compatible with Firebase SDK 11.8.0. At the time the app initializes the logcat will contain this message:

    W/GooglePlayServicesUtil: Google Play services out of date
    

    If the error occurs on a real device, you need to update Google Play services on the device. If the error occurs on an emulator, you need to use the SDK manager to download the latest emulator images and pick one the includes Google API.

    Because Firebase requires Google Play services, it's good practice to confirm that it is available using GoogleApiAvailability as explained in the documentation.

    0 讨论(0)
提交回复
热议问题