当我运行我的android项目时发生错误。

问题描述:

当我运行应用程序时,此错误已发生。当我运行我的android项目时发生错误。

“错误:执行失败的任务。 ':应用程序:dexDebug'

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 1"

apply plugin: 'com.android.application' 

repositories { 
    jcenter(); 
    maven{ 
     url "https://c2call.com/archiva/repository/release/" 
    } 
} 
dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.2.0' 
    compile 'com.c2call.android:c2callsdk:1.6.+' 
    compile 'com.android.support:multidex:1.0.1' 
} 
android { 
    compileSdkVersion 23 
    buildToolsVersion '23.0.2' 

    defaultConfig { 
     applicationId "com.reveriegroup.islammortuza" 
     minSdkVersion 16 
     multiDexEnabled = true 
    } 
    dexOptions { 
     javaMaxHeapSize "4g" 
    } 
    useLibrary 'org.apache.http.legacy' 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 
+0

hit this http://*.com/search?q=java.exe+finished+with+non-zero+exit+value+1 – Bharatesh

您是否尝试过 ”无效缓存&重启“? 有时也有与文件的一些冲突 一个。”干净的项目“和”重建“可以帮助。