dexDebug ExecException finished with non-zero exit value 2

Error:Execution failed for task ':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_05\bin\java.exe'' finished with non-zero exit value 2

android {

    compileSdkVersion 21
buildToolsVersion '21.1.0' defaultConfig {
...
targetSdkVersion 21
multiDexEnabled true
}
}
1.dexDebug ExecException finished with non-zero exit value 2
需要在gradle中配置下面的代码,原因是引用了多个libraries文件 defaultConfig {
multiDexEnabled true
}
上一篇:iOS 实现启动屏动画(Swift实现,包含图片适配)


下一篇:PostgreSQL数据库中跨库访问解决方案