简体   繁体   English

为什么我的构建需要这么长时间?

[英]Why is my build taking so long?

Yesterday I home worked, and I had the surprise to see that my build time was approximatively 3-4 seconds on my personal laptop whereas it's taking over 5 minutes on my way more powerfull computer at work.. 昨天我回家工作,我很惊讶地发现,在我的个人笔记本电脑上,我的构建时间约为3-4秒,而在功能更强大的计算机上,这花费了超过5分钟的时间。

I have the same os on both (ubuntu 14.04 lts), I use the same jdk (open jdk 1.7), the only thing that differs is my IDE, I'm still on Android studio 1.5 at home, and I use 2.0 at work.3-4, I'm currently downloading the old ide but I doubt that it could be the problem here and I wanted to get the stackoverflow community's opinion on this one. 我在这两个操作系统上都使用相同的操作系统(ubuntu 14.04 lts),我使用相同的jdk(打开jdk 1.7),唯一不同的是我的IDE,我仍然在家中使用Android Studio 1.5,并且在工作中使用2.0 .3-4,我当前正在下载旧版ide,但我怀疑这可能是这里的问题,我想征集stackoverflow社区对此的意见。

Where should I look at ? 我应该在哪里看?

Thanks 谢谢

Android Studio 2.0 has introduced new feature called "Instant run" to minimize the build time between updates to your app. Android Studio 2.0引入了一项称为“即时运行”的新功能,以最大程度地缩短两次应用更新之间的构建时间。 Although your first build may take longer to complete, Instant Run pushes subsequent updates to your app without building a new APK, so changes are visible much more quickly. 尽管您的第一个构建可能需要更长的时间才能完成,但Instant Run可以将后续更新推送到您的应用中,而无需构建新的APK,因此可以更快地看到更改。

You can go through the document provided by Android for more information 您可以浏览Android提供的文档以了解更多信息

Here and Here 这里这里

Ok I've download the same ide than my laptop's, and it's as long as with 2.0.. So I'm back to square 1 and I don't know where to look for. 好的,我下载了与笔记本电脑相同的ide,并且它的发行版与2.0一样长。.所以我回到第1格,不知道在哪里寻找。 It cannot be something that's on git, same ide, same os, same jdk.. 它不能是git,同一个ide,同一个os,同一个jdk上的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM