Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The issue in Google Sign-In for Android

brother, I'm now integrating Google login functionality into my app in accordance with Google Docs.

When I follow the instructions in the document, I click on the button Configure a project to Configure a Google API Console project and I filled out all the information that I needed to fill out, including the platform, package name, and the value of sha-1, but when I clicked on the create button in popWindow again, I got the message Something went wrong. Please try again. I have tried numerous times. All of these are the results. Can someone help me to see what causes me? Thanks a lot!!

enter image description here

enter image description here

enter image description here

like image 986
何国栋 Avatar asked Feb 04 '23 00:02

何国栋


2 Answers

Please check if you have already added your project in firebase. If you have, do not add the project again in google developer console; it's kind of added to developer console by default. This is how I solved the issue in my case.

like image 169
Mitch Avatar answered Feb 06 '23 14:02

Mitch


Sometime, I fake this problem too

My case is:
1) I create project new from Google console first
2) I start Configure a project for Google Sign for the project created in step 1
3) Enter correct SHA1 and package_name
4) Error "Something when wrong and please try again"

I tested 5 times for 5 new projects and this problem always happened

THEN I SOLVED it by a trick like
1) I don't create new project in Google console
2) When Configure a project for Google Sign, I create new project here (don't use project name which already used before even you have shutdown it)

enter image description here
3) Enter correct SHA1 and package_name
4) It will working with no error

Tested it 3 times for 2 different emails and it working.
Hope it help

like image 21
Linh Avatar answered Feb 06 '23 15:02

Linh