Facebook和Google登录无法进行Beta测试APK [英] Facebook and google login is not working on beta testing APK

查看:106
本文介绍了Facebook和Google登录无法进行Beta测试APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google和Facebook登录在Android Studio工具中可以正常工作,但不能在测试版本或Beta测试中使用,因此请给我任何解决此问题的线索.

The Google and Facebook logins are working fine in Android Studio Tools, but they're not working on test version or beta testing, so please give me any clue to solve this problem.

推荐答案

我与Google支持小组联系后已解决此问题.

下面是此问题的解决方法.请按照步骤操作.

Below is the fix for this issue. Please follow the steps.

  1. 要修复Google登录名-每当您创建调试或发布APK时,请确保在API密钥中的" href ="https://console.cloud.google.com/apis/credentials?project=" rel ="nofollow noreferrer"> https://console.cloud.google.com/apis/credentials?project= ???".
  1. To fix google login - Whenever you will create a debug or release apk, please make sure to update Package name and SHA1 fingerprint in your API key at "https://console.cloud.google.com/apis/credentials?project=???".

请注意,SHA1指纹的调试和发布版本会有所不同,因此请将其相应地放置在Google控制台中.

Please note SHA1 fingerprint will differ for debug and release build, so place it accordingly in google console.

  1. 要修复Facebook登录-每当您创建调试或发布APK时,请转到 https://developers. facebook.com/并选择您的应用,然后转到设置->基本,并添加您的密钥哈希以进行调试和发布.
  1. To fix facebook login - Whenever you will create a debug or release apk, please go to https://developers.facebook.com/ and choose your app and go to Settings --> Basic and add your Key Hashes for debug and release.

希望这可以解决您的问题,但如果没有解决,请转到步骤3.

Hopefully this will fix your issue but if its not then please go to step 3.

  1. 现在,您必须检查是否已注册 Google Play应用签名.要进行检查,请转到 Google Play控制台 ,然后选择您的测试版中发布的应用程序,并导航至发布管理->应用程序签名.在这里,您会在已为此应用启用Google Play应用签名" 的顶部找到文本.如果是这样,则从"应用程序签名证书"中复制SHA1证书指纹,并按照第一步中的说明添加此SHA1密钥.现在在5或10分钟后进行测试,您的Google登录名将在Beta版应用中开始工作.

  1. Now you have to check for your app enrolled in Google Play App Signing or not. To check this please go to Google Play Console and choose your app that is published in beta and navigate to Release Management --> App Signing. There you will find the text at top "Google Play App Signing is enabled for this app". If so then copy the SHA1 certificate fingerprint from "App signing certificate" and add this SHA1 key as mentioned in 1st step. Now test after 5 or 10 minutes, your Google login will start work in the beta app.

现在,您像第2步中提到的那样,将SHA1(我们从第3步获得)的密钥哈希添加到Facebook控制台中.不必担心如何更改此SHA1到该键哈希格式.您可以轻松获得它,请在Android Studio中连接您的Beta版本应用程序,然后尝试从您的应用程序登录Facebook并从Android Studio中检查Logcat,您将在其中找到该SHA1的密钥哈希.要添加它,请按照步骤2进行操作.现在,您的Facebook登录名也将开始工作.

Now you have to add the Key Hash of SHA1 (which we got from step 3) to Facebook console as like mentioned in step 2. Don't worry how to change this SHA1 to that Key Hash format. You can easily get it, please connect your beta version app in Android Studio and try to login in Facebook from your app and check Logcat from Android Studio, there you will find that Key Hash for this SHA1. To add it please follow step 2. Now your Facebook login also will start to work.

与上述修复程序相关的有用链接- https://support. google.com/googleplay/android-developer/answer/7384423

Useful link which is related to above fix - https://support.google.com/googleplay/android-developer/answer/7384423

这篇关于Facebook和Google登录无法进行Beta测试APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆