순수한 공상과학연구소

자바 빌드 오류 Message:

* What went wrong:
Gradle could not start your build.
> Could not create service of type FileHasher using BuildSessionServices.createFileHasher().
   > Cannot lock file hash cache (/home/ec2-user/app/step1/ToyStoryGit/.gradle/6.9/fileHashes) as it has already been locked by this process.

* 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 1s

일때 

 

리눅스 또는 윈도우 터미널 

./gradlew --stop
./gradlew clean
./gradlew build

 

IntelliJ 에서 -- WARNING-MODE ALL 경고 메시지 없애는 방법

출처: https://aisi1004.tistory.com/842

 

빌드시 --warning-mode all 경고 없애기

빌드시 --warning-mode all  경고 없애기 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warn..

aisi1004.tistory.com

방법: 파일-setting - build, execution, deployment - compiler - java compiler - Additional command line parameters:

--warning-mode=all --stacktrace   <<-추가