On running an Android Application on Android Studio gives me the following error:-
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
I have also added the multiDexEnabled true
to my build.gradle
file. But still it gives me the error.
I am not sure for what reason it shows me this error. I had also gone through the following links, But haven't got anything that could help me to solve my issue.
Process 'command usr/lib/jvm/java-8-oracle/bin/java' finished with non-zero exit value 2
Android with Gradle (Java finished with non-zero exit value 2)
Any help would save me my world. Thanks in advance.