Dep
Dep

Reputation: 183

Error: 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1

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

I am new to Android development.

I got above error when I tried to run sample code - http://examples.javacodegeeks.com/android/android-barcode-and-qr-scanner-example/

I cleaned and rebuild the project too, then the error goes away but when i try to run again (to run in emulator), then error reoccurs. Any suggestions?

Many thanks in advance.

Upvotes: 2

Views: 2823

Answers (1)

SO-user
SO-user

Reputation: 1456

I had the exact issue. I just upgraded the jdk version from jdk1.7.0_79 to jdk1.8.0_91 and then added to path. Then the Build and Launch was successful.

Upvotes: 0

Related Questions