【发布时间】:2019-09-28 13:16:20
【问题描述】:
我来了
发生了异常。 PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null))
每当我尝试取消登录时,我的应用中都会弹出 google。
复制步骤:
在应用程序中,当按下使用 google 登录按钮时,会出现 google 登录页面,其中包含所有 gmail 帐户供您选择登录或注册。
触摸弹出窗口的外部区域以取消登录,然后关闭弹出窗口。
之后代码中出现平台异常:
发生了异常。 PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null))
现在登录按钮不起作用,应用程序崩溃,
试过 try/catch - 不工作
【问题讨论】:
-
请添加显示您在做什么的代码。你在 api 调用中使用 await 吗?
-
我也有同样的问题