热门IT资讯网

grade 错误

发表于:2024-11-24 作者:热门IT资讯网编辑
编辑最后更新 2024年11月24日,[admin@app-duiba001 notify-center]$ gradle testFAILURE: Build failed with an exception.* What went w

[admin@app-duiba001 notify-center]$ gradle test

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring project ':notify-core'.

> Could not resolve all dependencies for configuration ':notify-core:classpath'.

> Timeout waiting to lock artifact cache (/home/admin/.gradle/caches/modules-2). It is currently in use by another Gradle instance.

Owner PID: 12311

Our PID: 12540

Owner Operation: resolve configuration ':notify-core:classpath'

Our operation: resolve configuration ':notify-core:classpath'

Lock file: /home/admin/.gradle/caches/modules-2/modules-2.lock

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

解决:

find ~/.gradle -type f -name "*.lock" | while read f; do rm $f; done


0