带jack的Android编译时间极慢 [英] Android compilation time with jack is extremely slow

查看:27
本文介绍了带jack的Android编译时间极慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到 Java 8,我的计算机随后使用 jack 来编译我的 android 版本.自从我切换以来,在我的设备上构建应用程序需要花费大量时间;通常在 3-5 分钟之间.我将 .jack 文件中的服务器超时值更改为 1800 秒,但似乎服务器超时设置为 60 秒.有没有人遇到过类似的问题?

I recently upgraded to Java 8 and my computer is subsequently using jack to compile my android builds. Since I've switched, building the app on my device is taking an enormous amount of time; usually between 3-5 minutes. I changed the server timeout value in my .jack file to 1800 seconds and it still seems that the server timeout is set to 60 seconds. Has anybody had a similar problem?

这是我的 .jack 文件的样子:

Here is what my .jack file looks like:

SERVER_TIMEOUT=1800

我最近将我的电脑从 2010 年中期的 Mac 台式电脑升级到了 2015 年末的型号.尽管 jack 的编译速度仍然没有我希望的那么快,但它已经有了很大的改进.以前每次编译大约需要 5 分钟,现在编译只需要一分钟多一点.因此,对于那些面临类似问题的人来说,这或许可以为解决您的问题提供一些额外的见解.

I recently upgraded my computer from a mid 2010 mac desktop computer to a late 2015 model. Although jack is still not compiling as quickly as I'd like, it has improved immensely. Where it used to take around 5 minutes to compile each time, now it only takes a little over a minute to compile. So for those facing a similar problem, perhaps this may give some extra insight in to solving your problem.

推荐答案

我遇到了同样的问题,因为我想使用 java8 我决定使用 retrolambda 而不是 jack 编译器,因为它没有像 jack 编译器那样减慢构建速度.

I was facing the same problem, and since I want to use java8 I decided to use retrolambda instead of jack compiler as it didn't slow down the build as the jack compiler does.

这篇关于带jack的Android编译时间极慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆