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
}