带有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屋!
查看全文