美文网首页
transformClassesWithDexForReleas

transformClassesWithDexForReleas

作者: mocen_王琪 | 来源:发表于2017-03-27 17:08 被阅读117次

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

    相关文章

      网友评论

          本文标题:transformClassesWithDexForReleas

          本文链接:https://www.haomeiwen.com/subject/rvvrottx.html