Error:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’. > java.lang.RuntimeException: java.lang.RuntimeException: Unable to merge dex

It may causes for several reasons – I have found 2 reason and solution .

 Problem 1 :

If you use firebase service and it’s gradle version are older version . Or google play service , gms service are not updated version that can create this problem .

Solution :

Update all gradle version updated and same version for firebase .

Problem 2 : 

If multidex not enabled

Solution : 

Android Multi-dex Enable


Leave a Reply

Your email address will not be published. Required fields are marked *