Build Failed java.lang.OutOfMemoryError: Java heap space

后端 未结 4 2081
情深已故
情深已故 2021-01-31 09:21

I am facing this issue while building my build.xml.

BUILD FAILED
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2786)
            


        
4条回答
  •  一生所求
    2021-01-31 10:21

    You need to set ANT_OPTS to next higher level in dx.bat file.which is located \build-tools\versions\dx.bat. set defaultXmx=-Xmx2048M I set it to 2GB.

提交回复
热议问题