Google Signature: Login failed for the specified account. Choose another account

This question has already been asked, but I have not found a satisfactory answer.

I followed every step https://developers.google.com/+/mobile/android/samples/quickstart-android#credentials-screenshot , but instead of the name of my package I use mine.

There are two cases when one is direct testing and one is after apk with keystore.

When I test my application, in this case you can sign up for any google account, but after I generate my signed apk , it gives me Error signing in the specified account. Please choose a different account Error signing in the specified account. Please choose a different account .

If everything is the same, then why doesn't it work with signed apk ?

+4
source share
1 answer

I found my mistake, and this is the SHA1 key, my debug SHA1 and keystore SHA1 are different, and on the Google console I gave my debug SHA1, so it worked with debug apk, but not with signed apk.

So what I did, I extracted SHA1 from my keystore and placed it in the Google console, now it works for a signed apk (now it will not work with debug). So you can extract SHA1 from the keystore.

 c:\Program Files\Java\jdk1.7.0_71\bin>keytool -list -v -keystore c:\you_key_here.key 
+5
source

All Articles