当我尝试同时运行多个Gradle项目时,出现以下错误:
Timeout waiting to lock journal cache (/Users/myusername/.gradle/caches/journal-1). It is currently in use by another Gradle instance.
Owner PID: 1750
Our PID: 1763
Owner Operation:
Our operation:
Lock file: /Users/myusername/.gradle/caches/journal-1/journal-1.lock
我试着运行它在IntelliJ以及在终端(我不工作在Android Studio)。我在MacBook上工作。我尝试以下:
- ./gradlew--停止
- 从. gradle目录中删除所有. lock文件
- 删除. gradle目录
有什么解决办法吗?
1条答案
按热度按时间wmtdaxz31#
无法同时运行多个Gradle进程。以下是关于此问题的错误请求:
https://github.com/gradle/gradle/issues/8750