Try increasing heap size with java option '-Xmx<size>Android 7.0工程之预编译jack服务器
2017-11-30 14:32
453 查看
stackoverflow
for cm you can use
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
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
相关文章推荐
- 编译android 7.0 出现Try increasing heap size with java option '-Xmx<size>'错误解决方案
- android 7.0 编译时出现Try increasing heap size with java option '-Xmx<size>'错误解决方案
- 编译android 7.0 出现Try increasing heap size with java option '-Xmx<size>'错误解决方案
- 编译android 7.0 出现Try increasing heap size with java option '-Xmx<size>'错误解决方案
- Android源码编译GC overhead limit exceeded. Try increasing heap size with java option '-Xmx<size>'
- Android源码编译GC overhead limit exceeded. Try increasing heap size with java option '-Xmx<size>'
- android7.0 编译问题 Try increasing heap size with java option '-Xmx<size>'
- Android N 遇到Try increasing heap size with java option
- Android 7.0工程之预编译jack服务器
- Android 7.0工程之预编译jack服务器
- 多用户同时在一台服务器编译Android源码错误——Communication error with Jack server (77)
- Android Studio编译大工程报错:java.exe'' finished with non-zero exit value 1 or exit value 2
- android.database.CursorIndexOutOfBoundsException: Index <m> requested, with a size of <n>
- android.database.CursorIndexOutOfBoundsException: Index <m> requested, with a size of <n>
- Android Studio编译大工程报错:java.exe'' finished with non-zero exit value 1
- 多用户同时在一台服务器编译Android源码错误——Communication error with Jack server (77)
- maven 编译java工程:<identifier> expected
- <Android+Java>(一) 打开已有的工程
- Jack-server出错:out of memory error,try increasing heap size
- <Android+Java>创建的Android工程的结构