简体   繁体   English

Flutter Firebase 不适用于发布应用程序

[英]Flutter Firebase not working on release app

Flutter Firebase not working when used in release mode while the app is working perfectly fine when in debug mode. Flutter Firebase 在发布模式下使用时无法正常工作,而在调试模式下应用程序运行良好。 I have added SHA-1 fingerprints but it didn't help.我已经添加了 SHA-1 指纹,但没有帮助。

ps.附言。 I have also connected back4app database in the app.我还在应用程序中连接了 back4app 数据库。

I solved the error by adding these two lines in the android/app/build.gradle :我通过在android/app/build.gradle中添加这两行解决了这个错误:

buildTypes {
    release {
        shrinkResources false
        minifyEnabled false
        signingConfig signingConfigs.debug
    }
}

在此处输入图像描述

SHA-1 is different between release and debug SHA-1 在发布和调试之间是不同的

update更新

Generate SHA-1 for Flutter/React-Native/Android-Native app 为 Flutter/React-Native/Android-Native 应用生成 SHA-1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter - firebase_app_check 在发布模式下不工作,如何解决? - Flutter - firebase_app_check not working in release mode, how fix it? Flutter Firebase 在 Google Play 中发布后数据库无法正常工作 - Flutter Firebase Database not working on release after publish in Google play Firebase OTP 在将 flutter 应用程序上传到 Playstore 后无法正常工作 - Firebase OTP not working after uploading flutter app to Playstore Flutter - Firebase 当应用处于终止模式时动态链接不工作 - Flutter - Firebase Dynamic Link not Working while app is in kill mode Firebase Auth 在 Flutter 中不起作用 - Firebase Auth not working in Flutter Flutter iOS 发布崩溃:Firebase FireStore Util - Flutter iOS Release Crash: Firebase FireStore Util 与 firebase 连接后,应用程序未在发布模式下运行 - app not running in release mode after connection with firebase Firebase Phone Auth 在发布版本中不起作用 - Firebase Phone Auth not working in release build Flutter 发布应用程序在第一个屏幕后崩溃 - Flutter release app crashes after first screen Flutter Firebase 数据库持久性不起作用 - Flutter Firebase Database persistence not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM