Flutter multidex problem With FirebaseAuth , Firestore and Google Sign in

后端 未结 2 2176
日久生厌
日久生厌 2020-12-16 20:26

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 bo

相关标签:
2条回答
  • 2020-12-16 20:49

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

             defaultConfig {
                    ...
                    multiDexEnabled true
                }
    

    Don't forget:

    flutter clean
    
    0 讨论(0)
  • 2020-12-16 20:59

    Although having a multiDexEnabled true can solve the problem it will result in a minSdkVersion 21 for your application because it will crash on all older devices than lollipop witch means losing millions of potential customers who still own this phones , right

    0 讨论(0)
提交回复
热议问题