问题
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