Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to delete the .gradle folder in Android Studio?

I have an old project that am working at, I noticed that the .gradle folder has too many subfolders for each distribution of gradle I've changed in the past, is it safe to delete the old versions subfolders?

enter image description here

like image 732
yehyatt Avatar asked Mar 03 '16 07:03

yehyatt


People also ask

Can I delete .gradle folder Android?

However, if you install/use that app again, the folders will recreate themselves. So the conclusion: Yes, you can delete the, if you do not use the apps associated with them.

Can I clear .gradle folder?

gradle/caches directory holds the Gradle build cache. So if you have any error about build cache, you can delete it.

What is .gradle folder in Android Studio?

gradle file, located in the root project directory, defines dependencies that apply to all modules in your project. By default, the top-level build file uses the plugins block to define the Gradle dependencies that are common to all modules in the project.

Can I delete .gradle wrapper?

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 ~/.


1 Answers

Inside the project you can find the .gradle folder.

Inside you can find all settings and other files used by gradle to build the project. You can delete these files without problems. Gradle will recreate it.

Also these file are not committed and Version Control Systems. It means that when you checkout the project these files are not present on the project.

like image 196
Gabriele Mariotti Avatar answered Sep 23 '22 00:09

Gabriele Mariotti