Closed msayanece closed 4 years ago
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
After integrating to my app, when I try to run the app, this error show. I don't know why this is happening.
This is my App Gradle file...
apply plugin: 'com.android.application'
android { compileSdkVersion 25 buildToolsVersion '26.0.2' defaultConfig { vectorDrawables.useSupportLibrary = true applicationId "com...***" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "" } } multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "CMakeLists.txt" } } configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' } }
dependencies { implementation 'com.android.support:support-v4:25.4.0' compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) implementation 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0' compile 'com.squareup.okhttp3:logging-interceptor:3.4.0' compile 'com.uber.sdk:rides-android:0.5.3' compile 'com.google.android.gms:play-services-maps:11.8.0' compile 'com.google.android.gms:play-services-location:11.8.0' compile 'com.google.android.gms:play-services-places:11.8.0' compile 'com.google.android.gms:play-services-auth:11.8.0' implementation('com.facebook.android:facebook-login:[4,5)') { exclude group: 'com.android.support' } compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.squareup.retrofit2:converter-scalars:2.3.0' compile 'com.crystal:crystalrangeseekbar:1.1.1' compile 'com.github.chrisbanes.photoview:library:1.2.4' compile 'com.koushikdutta.ion:ion:2.2.1' compile 'com.google.code.gson:gson:2.8.1' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.mcxiaoke.volley:library-aar:1.0.0' compile 'de.hdodenhof:circleimageview:2.2.0' compile 'com.android.support:recyclerview-v7:25.4.0' compile 'com.android.support:cardview-v7:25.4.0' compile 'com.android.support:appcompat-v7:25.4.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:design:25.4.0' compile 'com.github.smart-fun:XmlToJson:1.4.4' compile('com.github.msayanece:OLA-RIDE-SDK:v1.3') { exclude group: 'com.android.support' } testCompile 'junit:junit:4.12' compile('com.github.msayanece:Zomato-Android-SDK:v0.1') { exclude group: 'com.android.support' } compile ('com.payumoney.sdkui:plug-n-play:1.1.0')
} apply plugin: 'com.google.gms.google-services'
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
After integrating to my app, when I try to run the app, this error show. I don't know why this is happening.
This is my App Gradle file...
apply plugin: 'com.android.application'
android { compileSdkVersion 25 buildToolsVersion '26.0.2' defaultConfig { vectorDrawables.useSupportLibrary = true applicationId "com...***" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "" } } multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "CMakeLists.txt" } } configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' } }
dependencies { implementation 'com.android.support:support-v4:25.4.0' compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) implementation 'com.google.firebase:firebase-core:11.8.0'
} apply plugin: 'com.google.gms.google-services'