How to increase maximum heap size for the Gradle daemon?

前端 未结 5 953
孤街浪徒
孤街浪徒 2021-02-20 07:41

When signin an apk, I got this message:

To run dex in process, the Gradle daemon needs a larger heap.
It currently has 1024 MB.
For faster builds, increase the m         


        
5条回答
  •  悲哀的现实
    2021-02-20 08:05

    I know you said your project doesnt have gradle.properties but you could create a global one in C:\Users\user\.gradle and add:

     org.gradle.jvmargs=-Xmx4096M
    

    And remember to run gradle --stop to kill any previous daemons.

提交回复
热议问题