Error:Execution failed for task ':app:dexDebug'. finished with non-zero exit value 2 with Facebook Fresco
I've read every single thread regarding this issue here and I can't find any answer to my problem. After adding the Fresco lib I'm getting this error when building my app. The problematic line is: compile 'com.facebook.fresco:fresco:0.5.3+' The error: Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_71\bin\java.exe'' finished with non-zero exit value 2 If I take the fresco compile line out, it works. My gradle looks like this : buildscript { repositories