DrawRouteMaps icon indicating copy to clipboard operation
DrawRouteMaps copied to clipboard

Unable to merge Dex

Open frankenstein19 opened this issue 6 years ago • 2 comments

While importing this api in app i am getting this error . please give me solution Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

frankenstein19 avatar Jan 31 '19 08:01 frankenstein19

Did you solved it?

JosePedroNobre avatar Aug 27 '19 22:08 JosePedroNobre

Hi guys, try adding the following line to your build.gradle file: multiDexEnabled true

Everything should look like this:

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.xx.xxx"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        multiDexEnabled true //Add this
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

eltallerdetd avatar Feb 09 '20 21:02 eltallerdetd