Leakcanary: Error: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;

Created on 12 Aug 2017  Â·  6Comments  Â·  Source: square/leakcanary

I am getting above error I am using below dependencies I have all searched on the web but I got no solution.

compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.android.support:multidex:1.0.1'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.2'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.0'

Most helpful comment

Use 1.5.1 for now

On Mon, Aug 14, 2017 at 8:00 PM ez_sun notifications@github.com wrote:

how to fix it

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/square/leakcanary/issues/821#issuecomment-322364831,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEWXa3r-jERJD7ovhbxpg8MS0nj3Kks5sYQnMgaJpZM4O1hdj
.

All 6 comments

Dupe #815

Me too.

how to fix it

Use 1.5.1 for now

On Mon, Aug 14, 2017 at 8:00 PM ez_sun notifications@github.com wrote:

how to fix it

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/square/leakcanary/issues/821#issuecomment-322364831,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEWXa3r-jERJD7ovhbxpg8MS0nj3Kks5sYQnMgaJpZM4O1hdj
.

my solution is
1.open ur gradle.properties
2.set ur: org.gradle.jvmargs=-Xmx2048m
then clean project and generate it

@lamster2018 org.gradle.jvmargs=-Xmx2048m didn't worked for me....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edgelv34 picture edgelv34  Â·  7Comments

matejdro picture matejdro  Â·  6Comments

BraisGabin picture BraisGabin  Â·  6Comments

divyenduz picture divyenduz  Â·  6Comments

vincent-paing picture vincent-paing  Â·  3Comments