Gradle 2.8 cache.properties上的FileNotFoundException

时间:2016-01-19 22:51:46

标签: android android-studio android-gradle filenotfoundexception

当我即将建造时,我得到了:

Error:java.io.FileNotFoundException: C:\Users\XXXXX\Documents\GIT\sampleproject\.gradle\2.8\taskArtifacts\cache.properties (The system cannot find the file specified)
> C:\Users\XXXXX\Documents\GIT\sampleproject\.gradle\2.8\taskArtifacts\cache.properties (The system cannot find the file specified)

我已经跟踪了其他相关错误的相关解决方案,例如:

- deleting contents of `%TEMP%
- deleting all the cache.lock.properties inside .gradle\caches\2.8\scripts
- changing the "Service directoy path" of gradle to a custom location in "C:/Gradle/.gradle"
  (I placed it in the root location instead of in a specific user folder. I have multiple user accounts in my Windows, I'm not sure if this has something to do with it.)

但所有这些都无济于事。我甚至卸载了一个安装的Android Studio (使用可执行安装程序)并将其更改为 PACKAGED Android Studio ,但仍然无法修复它。

我觉得我已经被盘旋了。有人找到了具体的解决方案吗?或者我可以使用某人正在使用Android Studio并复制他们的cache.properties并将其粘贴到我的手机中吗?

0 个答案:

没有答案