Unable to merge Dex
frankenstein19 opened this issue · 2 comments
frankenstein19 commented
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
JosePedroNobre commented
Did you solved it?
eltallerdetd commented
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"
}