Increase Java VM maximum heap size to 1024MB

I got "java.lang.OutOfMemoryError: Java heap space" error when I'm building own Kang (galaxys2 for example) with Gapps included.
Increase maximum heap size to 1024MB will solve it.
This commit is contained in:
Pavel Valenta 2012-04-18 01:06:51 +08:00
parent 50f5855af4
commit 1af866c239

View File

@ -155,7 +155,7 @@ printf "Zipping package..."
echo
printf "Signing package..."
SECURITYDIR=$ANDROID_BUILD_TOP/build/target/product/security
java -Xmx512m \
java -Xmx1024m \
-jar $ANDROID_BUILD_TOP/out/host/$OUT_TARGET_HOST/framework/signapk.jar \
-w $SECURITYDIR/testkey.x509.pem $SECURITYDIR/testkey.pk8 \
$REPACK/update.zip $OUTFILE