Android Firebase动态链接设置-SHA-1无法识别 [英] Android Firebase Dynamic Links setup - SHA-1 not recognized
问题描述
我正在尝试将我的Android应用设置为使用Firebase动态链接,并在Firebase控制台中进行设置时遇到问题.
i am trying to setup my android app to use firebase dynamic links and am experiencing a problem in setting it up in the firebase console.
我以前曾将我的应用程序添加到我的firebase项目中以使用实时数据库,并且它没有任何问题.我包括了应用程序的调试SHA-1(我是从app-debug.apk获得的).
i had previously added my app to my firebase project to use the realtime database and it works with no isssues. i included the app's debug SHA-1 (which i obtained from the app-debug.apk).
现在在firebase动态链接控制台屏幕中,我可以从下拉列表中选择我的应用程序,但是它以红色显示警告:请为此Android应用程序添加SHA-1".
now in the firebase dynamic links console screen, i can select my app from the drop-down list but it shows a warning in red "Please add SHA-1 for this Android app".
我什至从我的Firebase项目中删除了该应用程序,然后再次添加了它,其中还包括SHA-1,但是当我选择该应用程序时,我仍然在动态链接控制台页面上收到红色警告.
i even deleted the app from my firebase project and then added it again, also including the SHA-1 but i still get the red warning in the dynamic links console page when i select the app.
我非常感谢您为解决此问题提供任何帮助(以便它可以识别SHA-1).
i'd appreciate any help in sorting this problem out (so that it recognizes the SHA-1).
注意:我的firebase项目中还包含2个其他应用程序.一个具有SHA-1包含,另一个没有.如果我在动态链接控制台屏幕中选择了这些应用程序,则选择SHA-1的应用程序将不显示警告消息,而不使用SHA-1的应用程序将显示(如预期的那样)警告消息.
note: i have 2 other apps which are included in my firebase project. one has a SHA-1 include and the other not. if i select these apps in the dynamic links console screen, the one with the SHA-1 selects with no warning message and the one without a SHA-1 displays (as expected) the warning message.
谢谢
推荐答案
您需要将生产证书中的SHA1和SHA256添加到Firebase控制台
You need to add the SHA1 and SHA256 from your production certificate to firebase console
- 登录 firebase控制台
- 选择您的Firebase项目,单击
Configuration
- 找到您的Android应用,然后转到
SHA certificate fingerprints
并为您的生产证书添加SHA1和SHA256指纹.
- Log into firebase console
- Select your firebase project, click on
Configuration
- Find your Android App, then go to
SHA certificate fingerprints
and add both the SHA1 and SHA256 fingerprints for your production certificate.
要获取SHA1和SHA256:
To obtain the SHA1 and SHA256:
keytool -list -v -keystore your_release_certificate.jks
您还应该添加调试SHA1证书,进入项目文件夹并执行
You should also add your debug SHA1 certificate, go to your project folder and execute
./gradlew signingReport
您的调试SHA1(及其所有)都将如下所示:
your debug SHA1 (and all of them) will look like this:
8B:5F:27:7C:A6:59:9A:7C:BB:EF:2F:8B:17:A2:F6:1D:31:3B:73:E6
这篇关于Android Firebase动态链接设置-SHA-1无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!