How to increase maximum heap size for the Gradle daemon?

前端 未结 5 1017
孤街浪徒
孤街浪徒 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:19

    Try this link answer

    dexOptions 
       {
           javaMaxHeapSize "4g"
       }
    ....
    ....
    ....
    

提交回复
热议问题