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
In your app/build.gradle
file inside your android
folder , add this attribute multiDexEnabled
.
defaultConfig {
...
multiDexEnabled true
}
Don't forget:
flutter clean
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