square / leakcanary

A memory leak detection library for Android.
https://square.github.io/leakcanary
Apache License 2.0
29.42k stars 3.97k forks source link

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

Closed muyoutvip closed 7 years ago

muyoutvip commented 7 years ago

hi ,I'm sorry to bother you. My project displays this error at compile time. I Don'T understand what the problem is ? Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

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

AndroidStudio 3.0

dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.0.1' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:0.5' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' compile 'android.arch.lifecycle:runtime:1.0.0-alpha9' compile 'android.arch.lifecycle:extensions:1.0.0-alpha9' annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha9" compile 'android.arch.persistence.room:runtime:1.0.0-alpha9' annotationProcessor "android.arch.persistence.room:compiler:1.0.0-alpha9" testCompile 'android.arch.persistence.room:testing:1.0.0-alpha9' compile 'android.arch.persistence.room:rxjava2:1.0.0-alpha9' compile project(path: ':library') implementation 'com.android.support:design:26.0.2' compile 'com.lcodecorex:tkrefreshlayout:1.0.7' debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.2' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.2' compile 'com.android.support:multidex:1.0.2' }

PromanSEW commented 7 years ago

Duplicate of #815

eriknyk commented 5 years ago

815 was closed without an apparently solution for it :(

I'm not using android studio canary versions I'm on Android Studio v3.3 stable and I have the problem

pyricau commented 5 years ago

Try updating LeakCanary?