PersesTitan(페르) 기술블로그

[Gradle] Gradle could not start your build. 에러 해결 방법 본문

Error

[Gradle] Gradle could not start your build. 에러 해결 방법

PersesTitan(페르) 2024. 5. 11. 12:10

Intellij Plugin 개발하다가 실행 종료가 덜 되었는지 아래와 같이 그래이들 실행에 실패하는 일이 발생했습니다.

Gradle could not start your build.
> Cannot create service of type BuildSessionActionExecutor using method LauncherServices$ToolingBuildSessionScopeServices.createActionExecutor() as there is a problem with parameter #21 of type FileSystemWatchingInformation.
   > Cannot create service of type BuildLifecycleAwareVirtualFileSystem using method VirtualFileSystemServices$GradleUserHomeServices.createVirtualFileSystem() as there is a problem with parameter #1 of type FileWatchingFilter.
      > Cannot create service of type FileWatchingFilter using method VirtualFileSystemServices$GradleUserHomeServices.createFileWatchingFilter() as there is a problem with parameter #1 of type GlobalCacheLocations.
         > Cannot create service of type GlobalCacheLocations using method GradleUserHomeScopeServices.createGlobalCacheLocations() as there is a problem with parameter #1 of type List<GlobalCache>.
            > Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal().
               > Timeout waiting to lock journal cache (/Users/persestitan/.gradle/caches/journal-1). It is currently in use by another Gradle instance.
                 Owner PID: 2306
                 Our PID: 16658
                 Owner Operation: 
                 Our operation: 
                 Lock file: /Users/persestitan/.gradle/caches/journal-1/journal-1.lock

 

 

터미널에 아래 명령어를 입력해서 강제로 PID를 종료해주니 다시 잘 실행이 되는 것을 확인했습니다.

Owner PID는 gradle에 친절하게 써져있는 PID값을 적어주시면 됩니다.

 

macos

kill -9 [Owner PID]

 

windows

taskkill /f /pid [Owner PID]