Flutter multidex problem With FirebaseAuth , Firestore and Google Sign in

做~自己de王妃 提交于 2019-12-07 08:18:58

问题


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

How can i use both firestore and Firebase Auth.


回答1:


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

         defaultConfig {
                ...
                multiDexEnabled true
            }

Don't forget:

flutter clean


来源:https://stackoverflow.com/questions/52232452/flutter-multidex-problem-with-firebaseauth-firestore-and-google-sign-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!