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
}
posted @ 2016-04-14 11:00  一点点征服  阅读(583)  评论(1编辑  收藏  举报