Firebase App Invite无法在发行版APK中使用 [英] Firebase App Invite not working in release build APK

查看:225
本文介绍了Firebase App Invite无法在发行版APK中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Firebase应用邀请进行首次合作,使用调试版本APK正常工作,但是它在发布版本APK中不起作用。我需要添加一些保护?

  compile'c​​om.google.firebase:firebase-invites:10.0.1 '


解决方案

您必须从Firebase控制台更新SHA1指纹。而不是使用debug.keystore的SHA1,你应该使用你的release keystore的SHA1指纹。



命令行:


  1. keytool -exportcert -alias YOUR-KEY-ALIAS -keystore PATH-TO-YOUR-RELEASE -KEYSTORE /keystore.jks -list -v

  2. 复制并粘贴新的SHA1指纹到firebase控制台。


  3. 下载新的 google-services.json 并在您的项目中进行更新

  4. ol>

    I am working with Firebase app invite for the first time, its working fine with debug build APK, but its not working in release build APK. Do I need to add something in pro-guard?

    compile 'com.google.firebase:firebase-invites:10.0.1'
    

    解决方案

    You have to update SHA1 fingerprint from firebase console. Instead of using SHA1 of debug.keystore you should use SHA1 fingerprint of your release keystore.

    Command line:

    1. keytool -exportcert -alias YOUR-KEY-ALIAS -keystore PATH-TO-YOUR-RELEASE-KEYSTORE/keystore.jks -list -v

    2. Copy and paste new SHA1 fingerprint to firebase console.

    3. Download a new google-services.json and update it in your project.

    这篇关于Firebase App Invite无法在发行版APK中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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