I was looking for how to fix this during the day with full research without luck, in the end I was able to solve this problem using the following approach.
Before I start resolving this (at least as I worked for me), I must say that everything on the documentation is correct, and you do not need to change any lines of code or so. This seems like a bug in the cloud https://cloud.google.com/console
First, make sure you get the correct SHA1 and the name of your project, as described in the docs https://developers.google.com/+/quickstart/android
Now this error, as I noticed (at least for me), was that in my cloud console the project that I created was a long time ago with the old interface, and a few months ago I switched to the new GUI. When you get a new look at the cloud console, you will notice that new projects have an automatically generated project id such as atlantean-ares-331 , and old projects have a long integer value as the project id that is not visible. Therefore, if your project was created with the old GUI, and you just created a new client identifier for OAuth for this project, you will receive Toast "Internal Error" when trying to log in with Google.
How to fix
- Go to the console with the clouds.
- Create a new project, I would suggest a name like oldprojectname-Gplus
- In the API section, enable the Google+ API
Make sure that none of your projects has the same package name on the OAuth Client Identifier as the one you will use otherwise, you will receive Error This client ID is globally unique and is already in use (you will have to delete the old OAuth client identifier with the same package name that you will use now).
Go to your credentials. Create a new client identifier for OAuth.
Installed Application
Android
Enter the name of your project and your SHA1
Done
Thano Jan 18 '14 at 15:50 2014-01-18 15:50
source share