Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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; #821

Closed
sudhanshugaur4 opened this issue Aug 12, 2017 · 6 comments

Comments

@sudhanshugaur4
Copy link

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'
@JakeWharton
Copy link
Member

Dupe #815

@xfchen7117628
Copy link

Me too.

@sunyizeAD
Copy link

how to fix it

@JakeWharton
Copy link
Member

JakeWharton commented Aug 15, 2017 via email

imknown added a commit to imknown/ImkGithub that referenced this issue Aug 29, 2017
@lamster2018
Copy link

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

@velchev
Copy link

velchev commented Feb 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants