1:源码根目录下prebuilts/sdk/tools/jack-admin
diff --git a/tools/jack-admin b/tools/jack-admin
index f028d27..23d66c6 100755
--- a/tools/jack-admin
+++ b/tools/jack-admin
@@ -484,7 +484,7 @@ case $COMMAND in
if [ "$RUNNING" = 0 ]; then
echo "Server is already running"
else
- JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -cp $LAUNCHER_JAR $LAUNCHER_NAME"
+ JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -Xmx4096m -cp $LAUNCHER_JAR $LAUNCHER_NAME"
echo "Launching Jack server" $JACK_SERVER_COMMAND
(
trap "" SIGHUP
2:停止服务
./prebuilts/sdk/tools/jack-admin kill-server
3:打开服务
./prebuilts/sdk/tools/jack-admin start-server
注意
修改完毕后,必须执行2、3步,修改才能够生效。