SOLVED| ERROR:D8: Cannot fit requested classes in a single dex file | Flutter | Android | Firebase

Published: 05 April 2023
on channel: True Coders
2,527
46

Solution
https://www.youtube.com/@truecoders?s...

defaultConfig {
multiDexEnabled true
}
dependencies {
implementation 'com.android.support:multidex:1.0.3'
}

ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 102248 65536)
om.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/b...
at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:151)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:138)
at com.android.build.gradle.internal.tasks.DexMergingWorkAction.merge(DexMergingTask.kt:859)
at com.android.build.gradle.internal.tasks.DexMergingWorkAction.run(DexMergingTask.kt:805)
at com.android.build.gradle.internal.profile.ProfileAwareWorkAction.execute(ProfileAwareWorkAction.kt:74)


Watch video SOLVED| ERROR:D8: Cannot fit requested classes in a single dex file | Flutter | Android | Firebase online without registration, duration hours minute second in high quality. This video was added by user True Coders 05 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,527 once and liked it 46 people.