0

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.

arslan haktic
  • 4,348
  • 4
  • 22
  • 35
  • You have to examine the whole gradle/build log, as the error is somewhere up there and it's easy to overlook. I had this error when I tried to include bad version of Scala (compiled for Java 8, which is not supported by Android). – ssuukk Oct 13 '15 at 13:44
  • Please post the full output from the *Gradle Console* (View→Tool Windows→Gradle Console) – Jon Oct 13 '15 at 14:21
  • you need to check [this](http://stackoverflow.com/questions/30544114/processexception-execexception-process-command-library-java-javavirtualmac) and [this](http://stackoverflow.com/questions/30544114/processexception-execexception-process-command-library-java-javavirtualmac) – pRaNaY Oct 14 '15 at 03:51

0 Answers0