簡體   English   中英

錯誤:任務“:app:transformClassesWithDexForDebug”的執行失敗

[英]Error:Execution failed for task ':app:transformClassesWithDexForDebug'

當我搜索錯誤消息時,我遇到了許多較小的問題,但沒有一個對我有幫助。 所以我再問一次。 對我來說,此錯誤是在我添加處理程序以更新UI時發生的。 如果刪除處理程序,將不會有錯誤。 為什么會發生。

錯誤:任務':app:transformClassesWithDexForDebug'的執行失敗。

    com.android.build.api.transform.TransformException:  
    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 2

檢查我的gradle。

 apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
    applicationId "com.medical.trofii"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
    }
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile group: 'cz.msebera.android', name: 'httpclient', version: '4.4.1.1'
compile project(':rangeseekbar')
compile project(':library')


compile 'com.android.support:appcompat-v7:23.1.1'
compile 'it.dex.dexmovingimageview:dexmovingimageviewlib:0.1.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.github.rahatarmanahmed:circularprogressview:2.4.0'
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'cn.pedant.sweetalert:library:1.3'
compile 'com.mikhaellopez:circularimageview:2.1.1'

}

只需更新此

compile 'com.android.support:design:23.0.1' 
compile 'com.android.support:appcompat-v7:23.0.1'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM