狐狸梦见乌鸦

当坚持成为一种习惯,目标将不在遥远```
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

make otapackage出错

Posted on 2013-12-11 13:58  灬啊U  阅读(927)  评论(0编辑  收藏  举报

打包ota出错:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:155)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:112)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:272)
at com.android.signapk.SignApk.copyFiles(SignApk.java:496)
at com.android.signapk.SignApk.main(SignApk.java:557)

ERROR: signapk.jar failed: return code 1

 

解决方法:build/tools/releasetools/common.py 中将cmd = ["java", "-Xmx2048m", "-jar",改为cmd = ["java", "-Xmx4096m", "-jar"