当前位置: 首页 > 知识库问答 >
问题:

错误:任务执行失败:app:transformClassesWithDexForDebug ' Gradle

屈翰飞
2023-03-14

错误:任务': app: transformClassesSusDexForDebug'执行失败。

com.android.build.api.transform。TransformException:com.android.ide.common.process。ProcessException:org.gradle.process.internal。ExecException:处理C:\ProgramFiles\Java\jdk1.7.0_79\bin\Java中的“命令”。exe“”以非零退出值2结束

这是我的毕业设计

apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.google.peep"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0.1"
    }


    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 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:support-v13:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.android.support:palette-v7:23.1.1'
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.android.support:cardview-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.jakewharton.timber:timber:4.1.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.parse.bolts:bolts-tasks:1.3.0'
    compile 'com.parse:parse-android:1.11.0'
    compile 'com.javon.parserecyclerviewadapter:parserecyclerviewadapter:1.0.4'
}

共有1个答案

山翼
2023-03-14

在您的默认配置上添加此:索引启用 true,然后将此依赖项添加到您的项目编译 'com.android.支持:多索引:1.0

有关更多信息,请参阅此链接http://developer.android.com/intl/pt-br/tools/building/multidex.html#mdex-gradle

 类似资料: