【原创】编译Img时候,出现JVM OutOfMemoryError解决办法
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)
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")]
posted on 2012-06-18 21:35 IamEasy_Man 阅读(897) 评论(0) 编辑 收藏 举报