My android studio project giving following error right before it runs on device while it compiles error free,
Error:Execution failed for task ':app:dexCustomerDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
Followed many links but no luck any solution will be highly appreciated.