在Android Studio中删除.gradle文件夹是安全的吗?

您所在的位置:网站首页 android能删除吗 在Android Studio中删除.gradle文件夹是安全的吗?

在Android Studio中删除.gradle文件夹是安全的吗?

2023-08-08 01:26| 来源: 网络整理| 查看: 265

百度翻译此文   有道翻译此文 问题描述

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

推荐答案

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.

其他推荐答案

Though its very old thread but recently I 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.

Close Android Studio Delete .gradle folder manually Restart Android Studio

On restarting android studio, .gradle folder will be recreated.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3