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, duration hours minute second in high quality that is uploaded to the channel True Coders 05 April 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,527 times and liked it 46 visitors.