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

后端 未结 2 1712
刺人心
刺人心 2021-01-03 21:08

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

相关标签:
2条回答
  • 2021-01-03 21:19

    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.

    0 讨论(0)
  • 2021-01-03 21:29

    Though its very old thread but recently I recently run into the issue when renamed my android application root name manually. Access Denied error coming on reopening in Android Studio for filehashes.lock under .gradle folder.

    So followed below steps and it worked fine. 1. Close Android Studio 2. Delete .gradle folder manually 3. Restart Android Studio On restarting android studio, .gradle folder will be recreated.

    0 讨论(0)
提交回复
热议问题