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

查看:83
本文介绍了带有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天全站免登陆