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

前端 未结 6 1902
醉梦人生
醉梦人生 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条回答
  •  爱一瞬间的悲伤
    2021-02-09 08:09

    For me the only thing that worked was to provide 2 oauth client ids. a web application client id AND an android client id

    In my android app i use the client id and client secret of the web application. Even though i don't use the android client id anywhere in my app it is still required. ie if i delete the oauth android client in the google api console my app stops working EVEN THOUGH i dont use that client id ANYWHERE in my app.

    this makes absolutely no sense to me! go figure . but so far this is the only thing that has worked.

    un-freaking-believable.

提交回复
热议问题