FirebaseAuth、Firestore 和 Google 登录的 Flutter multidex 问题 [英] Flutter multidex problem With FirebaseAuth , Firestore and Google Sign in

查看:23
本文介绍了FirebaseAuth、Firestore 和 Google 登录的 Flutter multidex 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我只使用 firestore,Flutter 应用程序工作正常.但是现在我想添加 Firebase Auth 它是导致问题并显示Dex 错误日志

Flutter application is working fine if i use only firestore. But as now i want to add Firebase Auth it is Causing problem And showing Dex error log

我如何同时使用 Firestore 和 Firebase 身份验证.

How can i use both firestore and Firebase Auth.

推荐答案

android 文件夹内的 app/build.gradle 文件中,添加此属性 multiDexEnabled.

In your app/build.gradle file inside your android folder , add this attribute multiDexEnabled.

         defaultConfig {
                ...
                multiDexEnabled true
            }

不要忘记:

flutter clean

这篇关于FirebaseAuth、Firestore 和 Google 登录的 Flutter multidex 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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