我正在尝试生成一个签名的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.
Run Code Online (Sandbox Code Playgroud)
我无法归档该文件,但我尝试修改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
Run Code Online (Sandbox Code Playgroud)