在你的终端类型是:
./gradlew build
其结果将是:
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type FileHasher using GradleUserHomeScopeServices.createCachingFileHasher().
> Timeout waiting to lock file hash cache (/Users/zra/.gradle/caches/4.1-rc-1/fileHashes). It is currently in use by another Gradle instance.
Owner PID: 17571
Our PID: 26055
Owner Operation:
Our operation:
Lock file: /Users/xxx/.gradle/caches/4.1-rc-1/fileHashes/fileHashes.lock
现在要做的:
rm /Users/xxx/.gradle/caches/4.1-rc-1/fileHashes/fileHashes.lock
,并再次建立。
P.S替换你已经什么用户名XXX。
您正在使用什么版本的摇篮?什么版本的Java?这些基础知识可能有助于读者。另外,你是否使用任何插件(除了'java')? –
我更新了问题,谢谢 –
我最近在我的android工作室面临类似的错误。你有没有找到解决办法? – Fahadsk