【发布时间】:2015-09-11 00:39:57
【问题描述】:
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
【问题讨论】:
-
我必须这样做stackoverflow.com/questions/21523508/… 才能解决问题。不知道为什么会这样。
-
您检查是否有 PID 47991 正在运行?
-
在执行 系统还原 (Windows 7) 后,我遇到了与 OP 相同的问题。我注意到系统还原还原了我正在处理的一些 javascript 文件,所以我怀疑它也还原了我的 Android 项目中的一些文件。
标签: gradle