Gradle issue FileAccessTimeJournal

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 (/home/jatin/.gradle/caches/journal-1). It is currently in use by another Gradle instance.
Owner PID: 3813
Our PID: 5034
Owner Operation:
Our operation:
Lock file: /home/jatin/.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 2s
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 63.5s
Gradle task assembleDebug failed with exit code 1

Please tell me full solution as I am a complete beginner.
I also do not know how to use the stacktrace option .(* 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.)

I’m guessing that one of your task input file collections is including the .gradle folder. Eg:

task copy(type: Copy) {
   from projectDir 
   from '..'
   into 'foo' 
} 

Or perhaps you have a gradle daemon process which is stuck/unresponsive. You can run the following to kill off these processes

gradle --stop
1 Like