gradle 构建app过大 java heap space 或者OOM 问题 解决办法:配置dexOptioins javaMaxHeapSize dexOptions{ preDexLibraries = false; javaMaxHeapSize "4g" }