小编san*_*ina的帖子

获取错误:任务应用程序的执行失败:transformClassesWithMultidexlistForDebug

我已经尝试了几乎所有其他主题,但我在我的RSS阅读器应用程序中遇到了同样的问题.我该如何解决?

我收到这个错误:

错误:任务':app:transformClassesWithMultidexlistForDebug'的执行失败.com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\ Program Files\Java\jdk1.7.0_79\bin\java.exe''以非零退出值1结束

我已将AS更新为2.12,java sdk最新版本.

我已禁用即时运行

我试过清理项目

我安装了HAXM

在我的app build.gradle文件中:

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"

dexOptions {
    incremental = true;
    preDexLibraries = false
    javaMaxHeapSize "4g"
}


defaultConfig {
    multiDexEnabled true
    applicationId "com.vbo.xxx"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true

}
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.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:multidex:1.0.1'}
Run Code Online (Sandbox Code Playgroud)

在build.gradle项目中:

// Top-level build …
Run Code Online (Sandbox Code Playgroud)

java android android-studio build.gradle

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

android-studio ×1

build.gradle ×1

java ×1