The share link has been copied to clipboard

100% error solved | Error while merging dex archives - Multi Dex Enable true.

5K views · Oct 5, 2021
Visit Channel:protocoderspoint.com
Hi Guys, Welcome to Proto Coders Point, In this tutorial, we will checkout & solve the common error that “error while merging dex archives”. Android MultiDex: https://protocoderspoint.com/error-while-merging-dex-archives-solution-100-working/ What is the dex file? Understanding Multidex in android In Java, your code is converted from .java to .class file during compile time, so that our machine can understand the .class file but in android, the java code is compiled into DEX(Dalvik Executable) file so that our Android machine can understand it. This video is for android/flutter developers who face DEX error “cannot fit requested classes in a single file: error while merging dex achieve“. The error itself says you, why you are facing “multi Dex error”, The number of methods references in a .dex file cannot exceed 64K (# 68563 65536). A Single DEX file limits the number of methods referenced, A single DEX file is limited to 64K i.e. 65536, which simply means that you cannot create more than 65536 methods in a single DEX file(“cannot fit requested classes in a single file“). usually, this DEX error occurs when a developer adds external android/flutter libraries, So, sometimes by adding external libraries to your android/flutter projects, if your project merged app exceeds 65536 methods, then you will encounter a build error as mentioned above “error while merging dex archeive“. Comment below for any queries 😀 Follow and support me: 🐦 Twitter: https://twitter.com/rajatpalankar 💬 Facebook: https://www.facebook.com/protocoderspoint/ 💸 Instagram: https://www.instagram.com/protocoderspoint/ Be sure to ask for help in the comments if you need any. Suggestions for future Flutter tutorials are also very welcome! :) For mobile application development keep learning freely from a proto coders point Visit: https://protocoderspoint.com/ . . Support Proto Coders Point: https://www.buymeacoffee.com/rajatpalankar
Show More

Comments

loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text