- To run dex in process, the Gradle daemon needs a larger heap.
- It currently has approximately 910 MB.
- For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB.
- To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties.
复制代码
======================================
原因在使用Gradle编译的时候,编译内存不足导致。 解决方法在项目的根目录中进行修改。修改gradle.properties,
set org.gradle.jvmargs=-Xmx2048M。
修改后该问题得已解决。
|