com.google.android.gms.common.api.ApiException: 16:

前端 未结 6 1901
醉梦人生
醉梦人生 2021-02-09 07:37

I try to learn how i can use google sign in in my android App, but i catch com.google.android.gms.common.api.ApiException: 16 And i can\'t find on stackoveflow

6条回答
  •  -上瘾入骨i
    2021-02-09 08:00

    I am developing an Android application using Flutter, tried to integrate Google Sign In and faced the same problem with ApiException: 16 and SIGN_IN_FAILED (instead of RESULT_CANCELED).

    Application type on Firebase was set to android.

    In my case, after many hours of debugging, it turned out to be a wrong SHA-1 problem.

    As soon as I extracted the SHA-1 key from my project and updated Firebase console, it worked.

提交回复
热议问题