Android app won't launch because of Gradle issue in Android Studio
<p>i am trying to compile my android project using my Samsung/Virtual machine , but i am getting the following error:</p>

<pre><code>    Error:Execution failed for task ':app:dexDebug'.
    &gt; com.android.ide.common.process.ProcessException:         
    org.gradle.process.internal.ExecException: Process 'command
    '/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java'' 
    finished with non-zero exit value 2
</code></pre>

<p>i couldn't find an answer anywhere, any thoughts please ?</p>