gpt4 book ai didi

java - 错误:Execution failed for task ':app:transformClassesWithDexForDebug' Gradle

转载 作者:行者123 更新时间:2023-12-01 10:25:26 26 4
gpt4 key购买 nike

错误:任务“: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.7.0_79\bin\java.exe'' finished with non-zero exit value 2

这是我的 gradle 构建

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'
}

最佳答案

在您的默认配置中添加以下内容:multidexEnabled true,然后将此依赖项添加到您的项目compile 'com.android.support:multidex:1.0

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

关于java - 错误:Execution failed for task ':app:transformClassesWithDexForDebug' Gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35378076/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com