Google Plus Client "Internal Error"

On the last day, I started getting an “Internal Error” when trying to sign up a user with Google Plus in my application, which I used well and did not change. The code has not changed for a long time.

GmsClient returns

 connect: bindService returned true for Intent { act=com.google.android.gms.plus.service.START } service broker connected, binder: android.os.BinderProxy@40fdbd20 

And right after that, a message appears with a toast "An internal error has occurred."

I tried to compile Google SDK + samples and run them on the same device, but it shows the same error. Perhaps something has changed in the Google API?

+7
source share
4 answers

This is too stupid, but I did not find any information on the Internet and on the Internet. But he decided to replace:

 //static final String[] SCOPES = new String[] { Scopes.PLUS_PROFILE, PLUS_WRITE_MOMENT }; static final String[] SCOPES = new String[] { Scopes.PLUS_PROFILE }; 

It seems that the error was due to PLUS_WRITE_MOMENT ... I do not understand why, but it works without it.

I like google ...

+5
source

Solution "internal error":

Follow the demo https://developers.google.com/+/mobile/android/getting-started

it creates PlusClient using

 mPlusClient = new PlusClient.Builder(this, this, this) .setVisibleActivities("XXXX/AddActivity", "XXXX/BuyActivity") .setScopes("PLUS_LOGIN") // Space separated list of scopes .build(); 

And in my own application, when I delete ".setScopes (" PLUS_LOGIN ") and show as:

 mPlusClient = new PlusClient.Builder(this, this, this) .setVisibleActivities("XXXX/AddActivity", "XXXX/BuyActivity") .build(); 

Error resolved, connected!

+10
source

I also had this problem, which suddenly appeared out of nowhere. Unfortunately, Oleg’s answer didn’t help me.

The fix for me was to configure OAuth in the Google APIs console ( https://code.google.com/apis/console ). It was very easy to set up. Quick start instructions here: https://developers.google.com/+/quickstart/android .

When I first created the project, Simple API Access worked. But for a month, without changing any code, this was not enough.

+1
source

My experience / solution:

I tried all of the above (checking client ID, consent screen, changing areas, etc.). Nothing solved the problem for me forever.

When I looked at detailed adb logs using this:

 adb shell setprop log.tag.GooglePlusPlatform VERBOSE 

I got the following log:

 I/GLSUser ( 854): GLS error: BAD_REQUEST xxxxx@gmail.com oauth2:profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/contacts.readonly 

Finally, what solved the problem was switching from PlusClient (which is deprecated) to using GoogleApiClient .

Migration is quite simple (explained beautifully here: http://www.riskcompletefailure.com/2014/02/migrating-from-plusclient-to.html ).

After switching to GoogleApiClient, I never received this error again.

+1
source

All Articles