transformClassesWithDexForRelease-finished with non-zero exit value 3

记录一下关于android开发中
transformClassesWithDexForRelease-finished with non-zero exit value 3
的问题:

方法一:

change
"compile fileTree(dir: 'libs', include: ['.jar'])"
to
"provided fileTree(dir: 'libs', include: ['
.jar'])".

但是这个方法有可能会造成别的bug的出现

方法二:

在build.gradle中添加:
android {
dexOptions {
javaMaxHeapSize "4g"
}
}

你可能感兴趣的:(transformClassesWithDexForRelease-finished with non-zero exit value 3)