【问题标题】:When I run my android project that an error has been occurred. [duplicate]当我运行我的 android 项目时,发生了错误。 [复制]
【发布时间】:2016-09-13 14:03:04
【问题描述】:

当我运行应用程序时,出现了这个错误。

“错误:任务':app: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'' 完成非零退出值 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'
        }
    }
}

【问题讨论】:

标签: android


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-11-05
    • 1970-01-01
    • 2022-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-25
    相关资源
    最近更新 更多