我正在尝试在我的应用程序上使用 google plus 登录,我已经生成了证书指纹和所有证书,但是当我使用它获取令牌时,GoogleAuthUtil.getToken(...)
我总是会收到此错误。
错误日志:
09-04 14:04:39.904 13462-13474/? E/GLSUser: Empty consent data
09-04 14:04:39.904 13462-13474/? I/GLSUser: GLS error: InvalidService
这是我用来尝试获取令牌的代码
String scope = String.format("oauth2:server:client_id:%s:oauth2:%s", CLIENT_ID, Scopes.PLUS_PROFILE + " " + Scopes.PLUS_LOGIN);
token = GoogleAuthUtil.getToken(this, plusClient.getAccountName(), scope);
有什么建议么?