DEV Community

Cover image for Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio
FlutterCorner
FlutterCorner

Posted on

Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio

Hello Guys. Many times we Face Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio. So in this tutorial, we are going to solve this error.

What is Error ?

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.
Enter fullscreen mode Exit fullscreen mode

How to solve Flutter Firestore causing D8: Cannot fit requested classes in a single dex ?

All Possible Solution added here please visit How to solve Flutter Firestore causing D8: Cannot fit requested classes in a single dex ?

Top comments (0)