qantik qantik - 1 year ago 77
Android Question

Is it safe to delete old Gradle versions?

I recently noticed that the

folder in my home directory blew up to a size of almost 2GB. This is mainly caused by the all the old versions located at

I'm currently running v3.0 so is it necessary to keep all those other binaries and would there be a possible conflict with AndroidStudio which itself runs an internal Gradle wrapper at v2.2.0?

Answer Source

You can safely delete the ~/.gradle directory. It is created by the Gradle wrapper to store and cache downloaded files, so it will just repopulate the folder with the files necessary for future builds.

Note that if you made any changes yourself in that directory, you may need to keep those files, such as a ~/.gradle/ file.