【原创】编译Img时候,出现JVM OutOfMemoryError解决办法

时间:2023-02-02 22:52:30
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:136)
at com.android.signapk.SignApk.main(SignApk.java:481)

 

/LINUX/android/build/tools/releasetools/common.py 

 

cmd = [ " java "" -Xmx512m "" -jar ", os.path. join(OPTIONS.search_path,  " framework "" signapk.jar ")]

 

cmd = [ " java "" -Xmx1024m "" -jar ",os.path. join(OPTIONS.search_path, " framework "" signapk.jar ")]