- Gradle 构建报错 Corrupted DataBlock 2944000 found in cache xxxx taskArtifacts fileHashes.bin
- Corrupted DataBlock 1788408 found in cache xxxxxxxxxx\fileHashes.bin'
- Could not execute build using Gradle distribution http://xxxxxxxxxxx
解决办法:把项目下的.gradle 目录删掉 再构建
xxxxxxxxxx\fileHashes.bin' was locked等等 文件被锁定 且不能自动释放 导致一直编译失败,
打开任务管理器 -->性能-->打开性能监视器-->CPU下找到关联句柄-->搜索句柄 把文件名打上去 搜索
只要是这个文件还在被锁定肯定会出现至少一个搜索结果,找到 名称为 system(尝试删除被占用的文件,弹出被谁占用这里就是谁,博主这里提示是sytem占用) -->右键-->结束进程 就可以
2. 安装apk失败: installation failed since the device already has an application with the same package but a different signature in order to proceed........
博主出现这个错误的主要原因是应用的包名改了,在清单上改了包名,但是build.gradle上的applicationdi没有更改,导致出现这个问题,改为一致就解决了