FirebaseInstanceId Token retrieval failed SERVICE_NOT_AVAILABLE

前端 未结 10 1897
清酒与你
清酒与你 2020-12-23 23:56

I\'m working on an android app, it uses Firebase Authentication, Database and Storage. It was all working fine until this error message started to show up in logcat. (I did

相关标签:
10条回答
  • 2020-12-24 00:45

    you need to update the emulator to the latest version that includes Google Play services

    0 讨论(0)
  • 2020-12-24 00:48

    For future readers:

    Found this error when I set device date different than current and open. My application logs start printing similar log. Solution: restart your device and it will start working fine.

    0 讨论(0)
  • 2020-12-24 00:52

    Root cause: You miss google services in your device. So if you use emulator then apply "Cold boot" mode in advanced setting, if you use real device please change another

    0 讨论(0)
  • 2020-12-24 00:54

    To fix it you should check your Google play services properly are enabled

    If it is still showing the same error then you need to try the below steps

    1. You need to stop your emulator device.

    2. After that you need to open the AVD Manager Panel then the edit device configuration. In your device configuration panel go to "Show Advanced Settings" in the "Emulated Performance" section then you need to select the "Cold boot" option as the Boot Option then you should click on the Finish.

    After following the above steps your issue related to firebase must be fixed and it should be working.

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