mklimek mklimek -3 years ago 106
Android Question

Why Android Studio rebuilds project so slow even when no changes in sources?

When I make some changes in source code, Android Studio (actually gradle) has to rebuild the project. It's clear.

Why the second build takes almost the same amount of time like the first build, even if I didn't make any changes in the project?
When I look into GradleConsole it waits on "assembleDubug" task. I think gradle should be aware there's no changes and shouldn't waste so much time on it.

Answer Source

Finally, I found the solution: turn on Offline work for gradle.

enter image description here

or using CLI: ./gradlew --offline assembleDebugOrWhatever

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download