Error: execution failed for task: ExecException: Process 'command' C: \ Program Files \ Java \ jdk1.7.0_79 \ bin \ java.exe '' completed with nonzero exit value 2

Error: execution completed for task ': app: preDexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: process "command" C: \ Program Files \ Java \ jdk1.7.0_79 \ bin \ java.exe '' terminated with a non-zero value exit 2

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile files('poi-3.13-beta1-20150723.jar')
    compile 'com.android.support:appcompat-v7:22.2.1'
}
+4
source share
3 answers

, 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe' 2

, , , . - - ,

: -

  • SDK .
  • .
  • , MultiDex

, Project Modules.

: , , .

( , )

+1

This was resolved for me when I deleted the jar file in the / app / libs folder , because the library was also declared in /app/buld.gradle

0
source

Source: https://habr.com/ru/post/1610148/


All Articles