I am facing this error when I Use firestore with flutter app.
D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Users\Milan\AndroidStudioProjects\Milan_flutter_projects\bakery\bakery\build\app\intermediates\transforms\dexBuilder\debug\2.jar, The number of method references in a .dex file cannot exceed 64K. Learn how to reso