简体   繁体   中英

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!!

在此输入图像描述

在此输入图像描述

在此输入图像描述

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.

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)

在此输入图像描述
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

None of the following solutions worked for me. What I did was look into my Google API Console > Credentials. Then I noticed that while from the documentation I picked my "Type" to be "android", on the console it appeared as "Web".

When I deleted the credential and re-entered the details it worked like a charm. So if none of the solutions work, try deleting all credentials in the API console and try another time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM