DexException: Multiple dex files define Lcom/squareup/leakcanary/

* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: 
com.android.ide.common.process.ProcessException: 
java.util.concurrent.ExecutionException: 
com.android.dex.DexException: 
Multiple dex files define Lcom/squareup/leakcanary/watcher/R;

将如下这行:

    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.2'
替换成:
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
也就是将版本1.5.2退回到1.5,好像就可以了


阅读更多
换一批

没有更多推荐了,返回首页