0

downloaded Google plus sign-in example application from here: https://developers.google.com/+/quickstart/android

But when I click on GooglePlus button, I received error all the time:

ConnectionResult.getErrorCode() = 4

Why it occurs ?

On this page there is Troubleshooting section :

If you are seeing ConnectionResult.getErrorCode() = 4 when trying to connect, ensure that the consent screen is configured and saved.

What that means ? What should I do ?

Jim
  • 8,874
  • 16
  • 68
  • 125
  • Oh, now I now what is content screen. Found answer here http://stackoverflow.com/a/22505607/602011 – Jim Sep 23 '14 at 21:29

2 Answers2

1

I know this is old question but this may help other to solve problem ,
if you are getting code 4 error then

Follow these stem in android developme Console

  1. Open the Credentials page.
  2. Click Add credentials > OAuth 2.0 client ID.

enter image description here

  1. Select Android. and fill the fingerprint and package name .

enter image description here

  1. Click Create.

Then there will be successful sing in from google.

Please msg me if any problem occurs. Hope this may solve your problem. !!!

Ravikant Paudel
  • 2,228
  • 2
  • 17
  • 28
0

You have not configured the consent screen for project under API/Auths section in Google Developer Console.

Kevin Crain
  • 1,905
  • 1
  • 19
  • 28