Recently, I checked my Mac storage and found somet...
# random
m
Recently, I checked my Mac storage and found something shocking — over 88GB just under the
Documents
folder, mostly used by Android/Kotlin development folders like
.gradle
,
.android
,
.konan
, and old project builds. The
.gradle
folder alone was 44GB. We usually delete it to clear space, but then opening different projects means those dependencies just get downloaded again — wasting both time and bandwidth. And sometimes, projects even break due to missing versions. This led me to two tool ideas that could save both time and storage: 1. Smart Gradle/Cache Cleaner Tool A tool that scans all your Android/Kotlin projects, checks which libraries are in use, and removes only the unused cache — from
.gradle
,
.android
,
.konan
, and even project-specific build folders. It could keep shared dependencies, offer a dry-run preview, and maybe even auto-clean monthly. This could easily save 20–50GB for active devs. 2. Kotlin/Gradle/AGP Version Prompt in IDE Every time a project opens, before syncing, the IDE shows a popup comparing the project’s Kotlin, AGP, and Gradle versions with what’s already installed. It lets you choose to update, keep, or cancel — no more unexpected sync failures or unnecessary downloads. As someone who regularly switches between client and personal projects, I’ve faced these issues more than I can count. I’m curious: • Would tools like this help your workflow? • What would you improve or add? Drop your thoughts or reactions
image.png
t
• Gradle has auto-cleanup which you could configure: https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home:configure_cache_cleanup • Kotlin Gradle plugin unfortunately no: https://youtrack.jetbrains.com/issue/KT-28830/Automatically-cleanup-Kotlin-Native-.konan-home-directory • No idea if Android plugin has it or has feature request
m
@tapchicoma thanks for sharing
s
Yes, with old libraries and grade versions it grows. What I do sometimes is just
rm -rf
my
.gradle
,
.m2
,
.konan
etc. - especially after I updated a lot of libs at once. These are all caches, so I won’t use anything.