Gradle构建失败无法打开构建文件的proj类缓存 [英] Gradle Build Failure Could not open proj class cache for build file
本文介绍了Gradle构建失败无法打开构建文件的proj类缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'oscar'.
> Could not open proj class cache for build file '/Users/prakashv/dev/workspace/oscar-api/build.gradle' (/Users/prakashv/.gradle/caches/2.6/scripts/build_7o20dvaacd2xu3ci3o56uhd4f/proj).
> Timeout waiting to lock proj class cache for build file '/Users/prakashv/dev/workspace/oscar-api/build.gradle' (/Users/prakashv/.gradle/caches/2.6/scripts/build_7o20dvaacd2xu3ci3o56uhd4f/proj). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 47991
Owner Operation: unknown
Our operation: Initialize cache
Lock file: /Users/prakashv/.gradle/caches/2.6/scripts/build_7o20dvaacd2xu3ci3o56uhd4f/proj/cache.properties.lock
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
任何想法可能是什么问题? 我正在使用gradle 2.6和Java 1.8.0_60
Any idea what the problem could be ? I am using gradle 2.6 and Java 1.8.0_60
推荐答案
要解决此问题,我必须先杀死 Java(TM)Platform SE二进制文件进程,然后才能删除整个进程. /Users/<username>/.gradle/caches
文件夹,它允许Gradle命令再次运行.
To solve this I had to first kill the Java(TM) Platform SE binary process and then I was able to delete the whole /Users/<username>/.gradle/caches
folder which allowed Gradle commands to work once again.
我相信这个问题可能是由于通过IntelliJ IDEA向我的build.gradle
文件添加新依赖项而导致的.
I believe this issue may have happened for me as a result of adding a new dependency to my build.gradle
file through IntelliJ IDEA.
这篇关于Gradle构建失败无法打开构建文件的proj类缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文