小编Ars*_*yan的帖子

为什么我会收到com.google.android.gms.common.api.ApiException:10:?

private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
    try {
        GoogleSignInAccount account = completedTask.getResult(ApiException.class); //exception is here

        // Signed in successfully, show authenticated UI.
        System.out.println("google token ---> " + account.getIdToken());
    } catch (ApiException e) {
        // The ApiException status code indicates the detailed failure reason.
        // Please refer to the GoogleSignInStatusCodes class reference for more information about this error.
        e.printStackTrace();
    }
}
Run Code Online (Sandbox Code Playgroud)

android firebase-authentication

34
推荐指数
9
解决办法
3万
查看次数

标签 统计

android ×1

firebase-authentication ×1