FirebaseInstanceId Token retrieval failed SERVICE_NOT_AVAILABLE

前端 未结 10 1895
清酒与你
清酒与你 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:29

    Stop emulator device and open AVD Manager Panel, edit device configuration. In device configuration panel "Show Advanced Settings" in "Emulated Performance" section select "Cold boot" option as Boot Option then click Finish, it should be worked.

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

    I changed my emulator and now it is working correctly without any error.

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

    Check that Google play services are enabled

    if it still shows error Now try these steps

    Step 1 - Stop emulator device

    Step 2 - open AVD Manager Panel, edit device configuration. In device configuration panel "Show Advanced Settings" in "Emulated Performance" section select "Cold boot" option as Boot Option then click Finish, it should be worked.

    If this does not work try to work on different Emulator

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

    You could be using a deprecated version of Google Play Services on your device, try upgrading your Play Services first.

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

    "Cold Boot Now" Device in AVD Manager worked for me.

    Edit: After updating emulators and than doing the cold boot it helped. – parohy Apr 5 at 9:22

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

    I also faced with this issue. As I can see it can happen for many reasons.

    Finally I figured out that my problem was that the current latest Facebook Android SDK version (v4.36.0) has a bug. Everything works fine if I set it back to v4.35.0. Maybe this info can help someone in the future.

    You can find here the releases: https://github.com/facebook/facebook-android-sdk/releases

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