Thiago
Thiago

Reputation: 13302

Error:Execution failed for task ':app:dexDebug'. > ProcessException: or 'VirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'

When I try to run my app I get this Error:

Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

if I try use jdk1.7

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_45\bin\java.exe'' finished with non-zero exit value 2

thanks for help

Upvotes: 0

Views: 1739

Answers (1)

mbmc
mbmc

Reputation: 5105

You should use Java 7. But you can use retrolambda for lambda.

Upvotes: 0

Related Questions