What it actually does
When a developer presses Run, Gradle works out which parts of the project changed, fetches any missing dependencies from repositories such as Google's and Maven Central, compiles Kotlin and Java, merges resources and signs the output.
Why builds fail
Most Gradle errors are version mismatches: a library needs a newer Android Gradle Plugin, the Java version is wrong, or two dependencies pull in conflicting copies of the same code. The message is long, but the root cause is usually near the first "Caused by" line.
Good habits
- Pin versions deliberately rather than using open-ended ranges.
- Commit the Gradle wrapper so every machine and build server uses the same version.
- Cache dependencies on the CI server to keep builds fast.
Questions, answered
It downloads the toolchain and every dependency. Later builds reuse caches and only rebuild what changed.
No, but your developers do. As an owner, make sure the build is reproducible on a clean machine.