Where Does Gradle Store Caches and Wrappers?
Gradle ~/.gradle home with caches/modules-2, wrapper dists and daemon logs on every OS.
Last updated
Gradle keeps dependency modules, wrapper distributions and daemon logs under .gradle in your home folder on every OS. GRADLE_USER_HOME relocates the whole tree.
The caches/modules-2 subtree is the dependency cache mate to Maven .m2. Builds re download whatever you prune, so wiping is safe but slow next run.
Where Gradle stores this, by platform
%USERPROFILE%\.gradle
caches, wrapper/dists and daemon logs inside. Android Studio shares this home with its own Gradle versions.
~/.gradle
Same layout. gradle.properties here sets org-wide defaults like daemon memory.
~/.gradle
Same layout. CI caches usually key on wrapper version plus lockfiles, not this whole folder.
Frequently asked questions
How do I force Gradle to re download dependencies?
Delete the caches/modules-2 subtree (or run with refresh dependencies) and rebuild. Keep wrapper dists to skip re fetching Gradle itself.
Where are Gradle daemon logs for a hung build?
Under daemon/<version> in the same home. The latest log names the stuck task and thread.
Notice an outdated path? Let us know.