加快Android项目构建的时候,IntelliJ IDEA的 [英] Speed up Android project build time in IntelliJ IDEA

查看:808
本文介绍了加快Android项目构建的时候,IntelliJ IDEA的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如果有什么办法,如何设置跳过包装和德兴中的IntelliJ IDEA像Eclipse和ADT。有中的IntelliJ preferences Android的DX编译器部分中的其他虚拟机选项字段,也许这可能是一个办法,如何设置它。我也AP preciate另一个秘诀,如何加快的IntelliJ Android项目建设。

I am wondering, if there is any way, how to set skip packaging and dexing in IntelliJ IDEA like in Eclipse and ADT. There is Additional VM Options field in Android DX Compiler section in IntelliJ Preferences, maybe this could be a way, how to set it. I would also appreciate another tips, how to speed up IntelliJ Android project build.

推荐答案

在Eclipse中preferences,的完整名称跳过包装和德兴你指的跳转包装,德兴,直到出口或启动。 (速度可达自动生成的文件保存),这是自ADT 12奥德解决Eclipse的渐进式编译的问题(这放慢发展Eclipse的),检查出的Revisions 12.0.0(2011年7月)和的有关详细信息,此链接,需要注意的是包装和德兴是重要的一步,当你在调试/无论你使用的IDE(或无)的运行项目。

In Eclipse preferences, the complete name of skip packaging and dexing you are referring is Skip packaging and dexing until export or launch. (Speeds up automatic builds on file save), which is a feature added since ADT 12 in orde to address Eclipse incremental compilation problem (which slow down development on Eclipse), check out the Revisions 12.0.0 (July 2011) and this link for more details, Note that packaging and dexing are fundamental step when you are debugging/running project regardless of which IDE (or non) you use.

由于在他的评论中提到疯狂codeR,的IntelliJ不支持的Eclipse般的渐进式编译和问题窗格默认情况下,在另一个词,它不会自动编译您的项目时,文件更改。所以这真的不是一个问题,也没有在功能的IntelliJ。

As CrazyCoder mentioned in his comments, IntelliJ doesn't support Eclipse-like incremental compilation and Problems pane by default, in another word, it doesn't auto compile your project when file changed. So this is really not an issue nor feature in IntelliJ.

您的构建过程中的瓶颈可能来自别的地方。 AFAIK在一个中等规模的项目,大部分时间构建过程花费在正在编制的资源(AAPT命令,检查出的生成过程图)。有些聪明的人xdadevelopers发现的瓶颈,创造AAPT的一个修正版本:

Your build process bottleneck probably comes from other place. AFAIK in a medium-sized project, the most time build process spend on is compiling resources (AAPT command, check out build process diagram). Some smart people from xdadevelopers found the bottleneck and create a fix version of AAPT:

<一个href="http://forum.xda-developers.com/showthread.php?t=1907281">http://forum.xda-developers.com/showthread.php?t=1907281

我用它自己,我想说的速度提升是feelable在Eclipse中,请注意,它只能助长AAPT的步骤,而不是包装广告德兴。如果你使用InteliJ,它可能没有太大的帮助,因为它不需要编译项目经常。

I use it myself and I would say the speed boost is feelable in Eclipse, note that it only boost the AAPT step, not packaging ad dexing. If you use InteliJ, it probably doesn't help much as it needn't compile the project quite often.

这篇关于加快Android项目构建的时候,IntelliJ IDEA的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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