本文介绍了使用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年末的型号。虽然千斤顶仍然没有像我想的那样快速编译,但它已经有了很大的改进。过去每次编译大约需要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,我决定使用而不是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编译时间非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 22:14