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

后端 未结 3 916
独厮守ぢ
独厮守ぢ 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:27

    Edit /etc/host file on your device. Comment everything except

    120.0.0.1 localhost
    

    Put # in front of the line to comment it. Note that you need root access to edit this file.

    0 讨论(0)
  • 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?

    0 讨论(0)
  • 2021-01-05 18:45

    in my case the problem was that my real device was not connected to internet.

    0 讨论(0)
提交回复
热议问题