简体   繁体   中英

Android Google+ sign-in issue

I have a android application that with Google+ sign-in function. I have enabled Google+ API and create oauth 2.0 user client id for my application. Also, I download the JSON file from https://developers.google.com/mobile/add? platform=android. I generate the signed apk(release) and the google+ sign-in function works. My problem is that if I upload the signed apk to google play as a beta version. The Google+ sign-in function will be failed!!! The error sign-in result: Status

{statusCode=DEVELOPER_ERROR, resolution=null}.

I have no idea about this condition, please have advised to me. Many thanks.

Generate and add your SHA1 key to the Google Project Console. This will solve your issue.

keytool -list -v -keystore KEYSTORE_PATH -alias ALIAS_NAME

Use your Release keystore.

You have to enter SHA 1 certificate fingerprints from Google Play Console to your Google Project Console. Generated release SHA1 fingerprints works for signed apk but doesn't work for live apps anymore.

You need to add your SHA1 key to firebase console configuration. You can do it in this way:

Firebase console ( https://console.firebase.google.com ) -> your project -> configuration -> scroll to

在此处输入图片说明

You can find your SHA1 key running "Signin report" from Android Studio:

在此处输入图片说明

Then, look the "run tab" and click the button:

在此处输入图片说明

I think it's the easier way. Hope this help.

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