com.android.builder.dexing.DexArchiveMergerException:无法合并dex - Android Studio 3.0.1

时间:2018-03-01 03:41:24

标签: android-studio-3.0 multidex

你好在问我尝试了很多解决方案的问题之前,但是没有一个可以看到我的build.gradle

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support:support-v4:25.3.1'
implementation 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.android.support:multidex:1.0.2'
compile 'com.android.support:design:25.3.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.android.gms:play-services:11.0.4'

implementation 'com.google.firebase:firebase-storage:11.0.4'

compile 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.firebase:firebase-auth:11.0.4'
compile 'com.google.android.gms:play-services-auth:11.0.4'
implementation 'com.google.firebase:firebase-database:11.0.4'
implementation 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.android.volley:volley:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

compile 'com.theartofdev.edmodo:android-image-cropper:2.6.+'
compile 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.firebaseui:firebase-ui-database:2.3.0'
compile 'id.zelory:compressor:2.1.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'}

所以,当我试图运行app throw Android studio 3.0.1时,我收到错误

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
  

java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex

defaultConfig

{
    applicationId "fr.xxxx.xxx"
    minSdkVersion 16
    targetSdkVersion 26
    multiDexEnabled true
    versionCode 5
    versionName "1.0.4"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

0 个答案:

没有答案