“Can't create reliable connection to server” error while signin using google plus

后端 未结 3 915
独厮守ぢ
独厮守ぢ 2021-01-05 18:14

I am developing an application in which i want sign in using google plus. I have follow the steps from https://developers.google.com/+/mobile/android/sign-in

But

3条回答
  •  礼貌的吻别
    2021-01-05 18:35

    When following the code example at https://developers.google.com/+/mobile/android/sign-in, I got "Empty consent data" as well.

    But calling setScopes() on the PlusClient instance seemed to solve the problem:

    mPlusClient = new PlusClient.Builder(this, this, this)
                .setVisibleActivities("http://schemas.google.com/AddActivity")
                .setScopes(Scopes.PLUS_LOGIN, Scopes.PLUS_PROFILE)
                .build();
    

    Have you set scopes in your code example?

提交回复
热议问题