我正在尝试生成一个签名的apk,但是我总是遇到相同的错误。
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-wrapper.properties,但仍然遇到相同的错误。
这是我的gradle-wrapper.properties文件
#Thu May 05 20:51:44 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
org.gradle.jvmargs=-Xmx2048m
我已经尝试过了Android Gradle无法为对象堆保留足够的空间