问题描述:

I followed this google documentation and I just copy and pasted the whole SignInActivity with xml files and some string resources that were needed.

But everytime when I try to sign in from the emulator in the LogCat it shows handleSignInResult: false. I've been trying to get the google sign in to work for about a week now so I could setup my Achievements and Leaderboard. I really hope that someone could help me to solve this huge headache.

EDIT: That part where you have to choose your email to sign in was working, but the actual sign in not.

EDIT: I got the release key SHA 1 and added the json file to my app/ module, but still even after it has shown me which email to pick to sign in I click on one and it still doesn't connect!!!

EDIT: I JUST 4 seconds ago saved the edit and after that IT WORKED!!!!:D:D:D:D!!!!!! And just in case if anyone sees this and has problems with SHA1 then download this program, it's much easier then getting a headache from the freaking terminal/cmd. And now I'm off to celebrate my win against the evil Google Sign in. Oh and I got it working on my phone and it's still not working on the emulator, but that's not a problem.

网友答案:

First check your Manifest, do you add the INTERNET permission?

<uses-permission android:name="android.permission.INTERNET" />
网友答案:

Also, check to make sure your Gradle has all the compile commands and dependencies that are on the same page for that API

相关阅读:
Top