ar-android/DrawRouteMaps

Unable to merge Dex

frankenstein19 opened this issue · 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

Did you solved it?

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"
    }