2015-09-23 89 views
2

由于无法访问cache.properties文件,因此我在android Studio中的gradle构建失败。我试图使所有的缓存无效并重试,但没有奏效。我还重新安装了所有的SDK工具。下面是我得到由于无法找到cache.properties,因此无法执行Gradle构建

Error:java.io.FileNotFoundException: C:\Users\Siddharth\AndroidStudioProjects\IntentAssignment.gradle\2.4\taskArtifacts\cache.properties (The system cannot find the file specified) C:\Users\Siddharth\AndroidStudioProjects\IntentAssignment.gradle\2.4\taskArtifacts\cache.properties (The system cannot find the file specified) Blockquote

做什么任何意见的错误,下面是完整的控制台输出:

FAILURE: Build failed with an exception. * What went wrong: java.io.FileNotFoundException: C:\Users\Siddharth\AndroidStudioProjects\IntentAssignment.gradle\2.4\taskArtifacts\cache.properties (The system cannot find the file specified) C:\Users\Siddharth\AndroidStudioProjects\IntentAssignment.gradle\2.4\taskArtifacts\cache.properties (The system cannot find the file specified) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 0.747 secs

回答

0

运行CMD 写%temp% 那么临时文件夹中打开删除所有文件temp然后重建你的项目 希望这会解决你的问题

3

删除gradle文件夹,退出Android Studio并重新启动为我解决这个问题

相关问题