【发布时间】:2018-05-07 08:18:39
【问题描述】:
签署 apk 时,我收到以下消息:
To run dex in process, the Gradle daemon needs a larger heap.
It currently has 1024 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to at least 4608 MB (based on the dexOptions.javaMaxHeapSize = 4g).
To do this set org.gradle.jvmargs=-Xmx4608M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
在我的项目中,我没有 gradle.properties 文件,但我有一个名为 gradle-wrapper.properties 的文件。
我打开了那个文件并添加了org.gradle.jvmargs=-Xmx4608M这一行。
之后,我尝试再次签署 apk,但我仍然收到增加 Gradle 堆大小的消息。
如何实现?
【问题讨论】:
标签: android gradle android-gradle-plugin