Google登录错误:statusCode = SIGN_IN_REQUIRED

时间:2018-08-17 11:15:23

标签: android google-signin

我在使用Google游戏服务实现日志记录方面遇到了很大的问题。我检查了所有问题和答案,但没有任何帮助。我仍然得到:

onGoogleSignInActivityResult(): Status{statusCode=SIGN_IN_REQUIRED, resolution=null} 

像google api客户端一样不会被设置,但是确实如此。我使用SHA1(Web客户端)在控制台-OAuth2客户端中设置了所有内容,但没有任何效果。请帮忙,因为我快疯了。

这是我的控制台:

enter image description here

这是我的json:

{
  "project_info": {
    "project_number": "ZZZ",
    "project_id": "ZZZ",

  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "ZZZ",
        "android_client_info": {
          "package_name": "ZZZ"
        }
      },
      "oauth_client": [
        {
          "client_id": "value of Android client 3",
          "client_type": 1,
          "android_info": {
            "package_name": "XXX",
            "certificate_hash": generated hash from keystore
          }
        },
        {
          "client_id": "Value of Android client 2",
          "client_type": 1,
          "android_info": {
            "package_name": "XXX",
            "certificate_hash": generated hash from keystore
          }
        },
        {
          "client_id": value from Web client (auto created by Google Service),
          "client_type": 3
        }

      ],
      "api_key": [
        {
          "current_key": Value from Android key (auto created by Google Service)

        }
      ],
      "services": {
        "analytics_service": {
          "status": 2,
          "analytics_property": {
            "tracking_id": "XXX"
          }
        },
        "cloud_messaging_service": {
          "status": 2,
          "apns_config": []
        },
        "appinvite_service": {
          "status": 2,
          "other_platform_oauth_client": [
            {
              "client_id": "XXX",
              "client_type": 2,
              "ios_info": {
                "bundle_id": "XXX",
                "app_store_id": XXX"
              }
            }
          ]
        }
      ,
        "ads_service": {
          "status": 1
        }
      }
    }
  ],
  "configuration_version": "1"
}

0 个答案:

没有答案