Try increasing heap size with java option '-Xmx<size>Android 7.0工程之预编译jack服务器

来源:互联网 发布:基础法语入门软件 编辑:程序博客网 时间:2024/06/10 01:09

stackoverflow

Try increasing heap size with java option ‘-Xmx

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"./prebuilts/sdk/tools/jack-admin kill-server./prebuilts/sdk/tools/jack-admin start-server

for cm you can use

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"jack-admin kill-server && jack-admin start-server

上面情况不好使接着按照下面改一下参数。

I also had this problem after updating to 6.0 My computer is an i7 laptop with 8GB of ram. It worked fine with v5.x and below.

The reason is not enough memory as the error message states. In the v6.x build, more Jack is used. In my case, reducing the number of Jacks to 1 resolved the issue.

I can now continue compiling with 8GB of ram.

$HOME/.jack-server/config.properties    jack.server.max-service=1[100% 19740/19740]#### make completed successfully (11:55:27 (hh:mm:ss)) ####

Android 7.0工程之预编译jack服务器

参考信息

需要翻墙
官网搭建编译环境
https://source.android.com/source/initializing

使用 Jack 编译
https://source.android.com/source/jack

Jack server

https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/README-jack-server.md

阅读全文
1 0
原创粉丝点击