getToken() failed. Status BAD_AUTHENTICATION error

后端 未结 11 1173
耶瑟儿~
耶瑟儿~ 2020-12-05 09:14

I\'ve found the following error when running my android application in android studio. app couldn\'t get installed on my device because of this error. Didn\'t find the solut

相关标签:
11条回答
  • 2020-12-05 09:56

    If you using firebase server, As per the firebase updation if you give phone number authentication put your country code before contact number it is mendetory. example - +91 9999998888

    0 讨论(0)
  • 2020-12-05 10:03

    I got this error when tried to install app directly from Android Studio.
    It was due to certificate mismatch, since I used release certificate for setting up the app in Play Console, while Android Studio signs the app with debug certificate by default.
    Installing app via adb resolved the error.

    https://developers.google.com/games/services/android/quickstart#step_4_test_your_game

    Make sure to run an APK that you exported and signed with a certificate that matches one of the certificates you used during the application setup in Google Play Console.

    0 讨论(0)
  • 2020-12-05 10:03

    I copied and ran the code in a different project that had priorly worked on simple DB operations of Firebase. Probably it already had the authentication files in place so launching the app was solved there

    0 讨论(0)
  • 2020-12-05 10:06

    I have the same problem some days ago. I just compile my whole code in a new project and Problem Solved!!.

    Don't know what was the real problem. There is an issue filed here, with no solution.

    0 讨论(0)
  • 2020-12-05 10:06

    I updated Google Play Services on my phone and stopped receiving the same error. I am importing com.google.android.gms:play-services-cast:9.6.1 and analytics:9.6.1. Not sure if the version running on the device was too low but problem is now resolved but not sure how to prevent this error for users running older versions of Google Play Services.

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