FirebaseAuth、Firestore 和 Google 登录的 Flutter multidex 问题 [英] Flutter multidex problem With FirebaseAuth , Firestore and Google Sign in
本文介绍了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屋!
查看全文