Google is not working
Closed this issue · 39 comments
any error messages?
Nothing is displayed, when I call connectWithGoogle it shows the account chooser and stuck there
did you try the demo project? is it working?
Google integration is not working.getting following
[GetToken] GetToken failed with status code: BadAuthentication
[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: ELLIDED:-1551497223, App: com.android.vending, Service: androidmarket
fbl: Long live credential not available.
pls provide the demo project
i have used the same library as demo, even though it is showing above error. please help
did you try with another device?
ya, i have tried on different devices,
debug build variant? correct SHA1?
i have tried with release build and correct sha1
your issue looks similar to this
do i really need to add google-services.json file in my app?
no need
did you try this repo demo? is it working?
no, it is not showing when i click on "Connect Google" green button. It is just showing list of google accounts, but when i clicked on a account, nothing happens
you're using Android Studio 3.0+?
yes android studio 3.0.1
I have no idea... I just tried this repo demo with debug build variant in two devices, works as expected.
okay, please do share debug build instructions for sha1 key and client auth id.
clone this repo, then build
i have downloaded and imported this project into studio but when i click on google button, still not working
do i need to change googleWebClientId in build.gradle file when i download this repo?
any update?
do i need to change googleWebClientId in build.gradle file when i download this repo?
no need
using a real device (which model?) or emulator?
which model?
what is your android debug keystore sha1?
keytool -exportcert -keystore ~/.android/debug.keystore -list -v
You must
- use a google WEB client id AND
- create an Android oauth client, and fill out your correct sha1 and package name
@santhoshrao519 if you're testing this repo demo, you may provide me your android debug keystore sha1. I am not sure if the sha1 is same
Hi @jaychang0917 i have the same problem,
- Do I Generate Client ID Well? https://github.com/mikrop/uctenkova-smenarna-android/blob/master/Bez%20n%C3%A1zvu.png
- When I put a custom googleWebClientId into the build.gradle file
- I will overwrite package = "cz.mikropsoft.android.uctenkovka.smenarna" in AndroidManifest.xml
- I will deploy an application to my phone and debug responce, I get the com.jaychang.sa.GoogleAuthActivity # onActivityResult parameter resultCode = 0 (operation canceled).
What am I doing wrong? Thank you for answer! Michal
@mikrop using a web client id? Don't use android client's one
It works! Thank you
I closed it. Please feel free to reopen the issue if you have any questions.
Hi Jay,
Facing an issue while login with google+. When a select a user email from the list, nothing happens
@jaychang0917 @santhoshrao519
I am experiencing the same problem a few days ago. I have not changed anything at all (the Google Play Services version is the same) and it has stopped working. I upload the following image so you can see the response of the API.
I have tried everything:
- Clean project and rebuild.
- Reboot device.
- Review states of synchronized accounts.
- I have reviewed the SHA1 and the application id. Use the client_id for type 3.
- I have tried to rewrite the authentication with the new API and it also returns the same error as before.