简体   繁体   中英

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..

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.

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. 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.

You can go through the document provided by Android for more information

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. It cannot be something that's on git, same ide, same os, same jdk..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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