【问题标题】:I am getting ****finished with non-zero exit value 2. how to resolve it? [duplicate]我正在完成非零退出值 2。如何解决它? [复制]
【发布时间】:2016-05-18 00:38:21
【问题描述】:

我已经阅读了许多与此问题相关的问题,但所有问题都指向相同的解决方案 jar 在依赖项中重复。我已经检查了我的依赖项,它们没有重复的 jar,请告诉我应该如何解决这个问题

**

"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 2"

**

这是我的依赖文件

compile fileTree(dir: 'libs', include: ['*.jar'])
        compile files('libs/nextomeframework_beta1_mod.jar')
        compile 'gov.nist.math:jama:1.0.3'
        compile 'org.apache.commons:commons-math3:3.3'
        compile 'com.google.code.gson:gson:2.2.4'
        compile 'joda-time:joda-time:2.3'
        compile 'com.fasterxml.jackson.core:jackson-core:2.5.1'
        compile 'com.fasterxml.jackson.core:jackson-databind:2.5.1'
        compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.1'
        compile 'com.googlecode.efficient-java-matrix-library:core:0.26'
        compile 'org.osmdroid:osmdroid-android:4.3'
        compile 'org.slf4j:slf4j-simple:1.6.1'
        compile 'commons-io:commons-io:2.4'
        compile 'org.codehaus.jackson:jackson-mapper-asl:1.8.5'
        compile 'org.codehaus.jackson:jackson-core-asl:1.8.5'
        compile 'com.android.support:appcompat-v7:23.1.0'
        compile 'com.android.support:design:23.1.0'
        compile files('libs/concurrent.jar')
        compile files('libs/Jama-1.0.3.jar')
        compile files('libs/zip4j_1.3.2.jar')

【问题讨论】:

标签: java android android-studio


【解决方案1】:

我认为您提到的jama 库中有重复

compile 'gov.nist.math:jama:1.0.3'

compile files('libs/Jama-1.0.3.jar')

尝试删除其中一个。

【讨论】:

    猜你喜欢
    • 2018-05-09
    • 2016-01-21
    • 2016-01-19
    • 2015-07-05
    • 2016-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-25
    相关资源
    最近更新 更多