相关疑难解决方法(0)

Android studio在哪里是gradle.properties文件?

我正在尝试生成一个签名的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)

我已经尝试过Android Gradle无法为对象堆预留足够的空间

android android-studio android-gradle-plugin

80
推荐指数
3
解决办法
7万
查看次数