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:
parent
50f5855af4
commit
1af866c239
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user