Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I delete the gradle folder from Android Studio project safely?

Tags:

android

gradle

I have a folder named ".gradle" which is taking 600MB of space.
Normally, it contains a file named fileSnapshots.bin, which is around 20 MB.
But for one of my apps there are several sub folders in which there are several fileSnapshots.bin files created and these are around 150-200MB each.

Please see the following screenshot and tell me if I can delete this folder after closing my project?
If I delete it will my project rebuild safely next time?

enter image description here

like image 831
Usman Avatar asked Sep 21 '25 08:09

Usman


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.

See

like image 61
Akshay Bahadur Avatar answered Sep 22 '25 22:09

Akshay Bahadur