Firebase App Invite无法在发行版APK中使用 [英] Firebase App Invite not working in release build APK
问题描述
compile'com.google.firebase:firebase-invites:10.0.1 '
您必须从Firebase控制台更新SHA1指纹。而不是使用debug.keystore的SHA1,你应该使用你的release keystore的SHA1指纹。
命令行:
-
keytool -exportcert -alias YOUR-KEY-ALIAS -keystore PATH-TO-YOUR-RELEASE -KEYSTORE /keystore.jks -list -v
复制并粘贴新的SHA1指纹到firebase控制台。 -
下载新的 google-services.json 并在您的项目中进行更新
ol> keytool -exportcert -alias YOUR-KEY-ALIAS -keystore PATH-TO-YOUR-RELEASE-KEYSTORE/keystore.jks -list -v
Copy and paste new SHA1 fingerprint to firebase console.
Download a new google-services.json and update it in your project.
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:
这篇关于Firebase App Invite无法在发行版APK中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!