美文网首页
Gradle Timeout waiting to lock f

Gradle Timeout waiting to lock f

作者: 西安法律咨询服务平台与程序员 | 来源:发表于2019-04-15 18:45 被阅读0次
    $ gradle clean
    Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
    
    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/***/.gradle/caches/5.2.1/fileHashes). It is currently in use by another Gradle instance.
      Owner PID: 9193
      Our PID: 10083
      Owner Operation: 
      Our operation: 
      Lock file: /Users/***/.gradle/caches/5.2.1/fileHashes/fileHashes.lock
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 1m 13s
    
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal().
    > Timeout waiting to lock journal cache (/Users/***/.gradle/caches/journal-1). It is currently in use by another Gradle instance.
      Owner PID: 9193
      Our PID: 10083
      Owner Operation: 
      Our operation: 
      Lock file: /Users/***/.gradle/caches/journal-1/journal-1.lock
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    BUILD FAILED in 1m 0s
    

    上面的报错可以通过下面的命令解决:
    find ~/.gradle -type f -name "*.lock" | while read f; do rm $f; done

    相关文章

      网友评论

          本文标题:Gradle Timeout waiting to lock f

          本文链接:https://www.haomeiwen.com/subject/daspwqtx.html