transformClassesWithDexForReleas

2017-03-27  本文已影响117人  mocen_王琪

记录一下关于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"
}
}

上一篇下一篇

猜你喜欢

热点阅读