java - Android studio gradle too long -


enter image description here

my android studio build time ,i print log show app:compiledevdebugjavawithjavac has take 37s , build project take 53s ,too long wait ...

these gradle build tasks. gradle build automation system of android studio , has set of tasks perform in order build apk. each time run/build project goes through these list of tasks 1 after another. build time depends on project code , dependencies used in project.

gradle build life cycle

gradle language dependency based programming. in gradle terms means can define tasks , dependencies between tasks. gradle guarantees these tasks executed in order of dependencies, , each task executed once. these tasks form directed acyclic graph. there build tools build such dependency graph execute tasks. gradle builds complete dependency graph before task executed.

it gradle build life cycle. has 3 phases

*) initialization

*) configuration

*) execution

official document ion on build lifecycle


Comments